mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 03:07: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,
|
MaterialYouUtils.changeTheme(this, executor, new Handler(), redditDataRoomDatabase,
|
||||||
customThemeWrapper, lightThemeSharedPreferences, darkThemeSharedPreferences,
|
customThemeWrapper, lightThemeSharedPreferences, darkThemeSharedPreferences,
|
||||||
amoledThemeSharedPreferences, () -> {
|
amoledThemeSharedPreferences, () -> {
|
||||||
stopForeground(true);
|
stopService();
|
||||||
stopSelf();
|
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
stopService();
|
||||||
}
|
}
|
||||||
|
|
||||||
return START_NOT_STICKY;
|
return START_NOT_STICKY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void stopService() {
|
||||||
|
stopForeground(true);
|
||||||
|
stopSelf();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user