mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 13:29:50 +02:00
Fix Applying Material You notification cannot be dismissed.
This commit is contained in:
@@ -82,11 +82,17 @@ public class MaterialYouService extends Service {
|
||||
MaterialYouUtils.changeTheme(this, executor, new Handler(), redditDataRoomDatabase,
|
||||
customThemeWrapper, lightThemeSharedPreferences, darkThemeSharedPreferences,
|
||||
amoledThemeSharedPreferences, () -> {
|
||||
stopForeground(true);
|
||||
stopSelf();
|
||||
stopService();
|
||||
});
|
||||
} else {
|
||||
stopService();
|
||||
}
|
||||
|
||||
return START_NOT_STICKY;
|
||||
}
|
||||
|
||||
private void stopService() {
|
||||
stopForeground(true);
|
||||
stopSelf();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user