Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

handle possible exception

ammarahm-edc2f44eae5b70
diff --git a/apps/mobile/android/app/src/main/java/com/streetwriters/notesnook/MainActivity.java b/apps/mobile/android/app/src/main/java/com/streetwriters/notesnook/MainActivity.java
index e75034d40..8bd17ccb6 100644
--- a/apps/mobile/android/app/src/main/java/com/streetwriters/notesnook/MainActivity.java
+++ b/apps/mobile/android/app/src/main/java/com/streetwriters/notesnook/MainActivity.java
@@ -14,7 +14,12 @@ public class MainActivity extends ReactActivity {
protected void onCreate(Bundle savedInstanceState) {
SplashScreen.show(this);
super.onCreate(null);
- startService(new Intent(getBaseContext(), OnClearFromRecentService.class));
+ try {
+ startService(new Intent(getBaseContext(), OnClearFromRecentService.class));
+ } catch (Exception e) {
+
+ }
+
}