File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
app/src/main/java/tech/akpmakes/android/taskkeeper Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11package tech .akpmakes .android .taskkeeper ;
22
33import android .app .Application ;
4+ import android .provider .Settings ;
45import android .support .v7 .app .AppCompatDelegate ;
56
67import com .google .firebase .database .FirebaseDatabase ;
@@ -9,6 +10,13 @@ public class WhenApp extends Application {
910 @ Override
1011 public void onCreate () {
1112 super .onCreate ();
13+
14+ String testLabSetting = Settings .System .getString (getContentResolver (), "firebase.test.lab" );
15+ if ("true" .equals (testLabSetting )) {
16+ // Kill the process if we're running in Test Lab. We don't like Test Lab at the moment.
17+ android .os .Process .killProcess (android .os .Process .myPid ());
18+ }
19+
1220 /* Enable disk persistence */
1321 FirebaseDatabase .getInstance ().setPersistenceEnabled (true );
1422 AppCompatDelegate .setCompatVectorFromResourcesEnabled (true );
You can’t perform that action at this time.
0 commit comments