Skip reporting notification security exception

pull/156/head
M66B 6 years ago
parent e7581e9827
commit 0fe803156a

@ -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)

@ -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);
}

Loading…
Cancel
Save