mirror of https://github.com/M66B/FairEmail.git
Autofix notification security exception
This commit is contained in:
parent
9f5c62f534
commit
16b1552bc2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue