Skip reporting notification security exception

This commit is contained in:
M66B 2019-06-04 16:20:38 +02:00
parent e7581e9827
commit 0fe803156a
2 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,7 @@ import javax.mail.Address;
import javax.mail.internet.InternetAddress;
public class Log {
private static final String TAG = "fairemail";
static final String TAG = "fairemail";
public static int i(String msg) {
if (BuildConfig.BETA_RELEASE)

View File

@ -169,6 +169,8 @@ public class ServiceSynchronize extends LifecycleService {
public void onChanged(List<TupleMessageEx> messages) {
try {
Core.notifyMessages(ServiceSynchronize.this, notifying, messages);
} catch (SecurityException ex) {
android.util.Log.e(Log.TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
} catch (Throwable ex) {
Log.e(ex);
}