mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Autofix notification security exception
This commit is contained in:
@@ -170,7 +170,9 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
try {
|
||||
Core.notifyMessages(ServiceSynchronize.this, notifying, messages);
|
||||
} catch (SecurityException ex) {
|
||||
android.util.Log.e(Log.TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
Log.w(ex);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
|
||||
prefs.edit().remove("sound").apply();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user