fix crashing when service starting in isolated process #20
|
|
@ -20,6 +20,7 @@
|
|||
package ru.touchin.roboswag.navigation_base;
|
||||
|
||||
import android.app.Application;
|
||||
import android.os.Process;
|
||||
import android.os.StrictMode;
|
||||
|
||||
import com.google.firebase.crashlytics.FirebaseCrashlytics;
|
||||
|
|
@ -42,6 +43,10 @@ public abstract class TouchinApp extends Application {
|
|||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
if (Process.isIsolated()) {
|
||||
|
bogdan.terehov marked this conversation as resolved
Outdated
|
||||
return;
|
||||
}
|
||||
|
||||
JodaTimeAndroid.init(this);
|
||||
if (BuildConfig.DEBUG) {
|
||||
enableStrictMode();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
if (Process.isIsolated()) return было бы лучше
фикс