New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: crashing on sdk level below 18 #757

merged 1 commit into from Aug 23, 2017
Jump to file or symbol
Failed to load files and symbols.
+6 −6
Diff settings


Just for now

@@ -5,7 +5,6 @@
package com.mifos; package com.mifos;
import android.annotation.TargetApi;
import android.content.Context; import android.content.Context;
import; import;
import android.os.Build; import android.os.Build;
@@ -51,7 +50,6 @@ public static App get(Context context) {
return (App) context.getApplicationContext(); return (App) context.getApplicationContext();
} }
@Override @Override
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
@@ -62,10 +60,12 @@ public void onCreate() {
//Initializing the DBFlow and SQL Cipher Encryption //Initializing the DBFlow and SQL Cipher Encryption
FlowManager.init(new FlowConfig.Builder(this).build()); FlowManager.init(new FlowConfig.Builder(this).build());
Stetho.initializeWithDefaults(this); Stetho.initializeWithDefaults(this);
StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder() if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
.detectFileUriExposure() StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder()
.build(); .detectFileUriExposure()
StrictMode.setVmPolicy(policy); .build();
ForegroundChecker.init(); ForegroundChecker.init();
} }
ProTip! Use n and p to navigate between commits in a pull request.