mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 12:47:26 +01:00
Fix Applying Material You notification cannot be dismissed.
This commit is contained in:
parent
43dc0409ac
commit
326cbd4064
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user