1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-17 10:30:03 +02:00

Remove onCreate guard, as Robolectric seems to have evolved

This commit is contained in:
Benedikt Elser 2018-07-17 15:12:03 +02:00
parent 019edf3975
commit e51cf66a15

View File

@ -145,11 +145,6 @@ public class GBApplication extends Application {
app = this; app = this;
super.onCreate(); super.onCreate();
if (lockHandler != null) {
// guard against multiple invocations (robolectric)
return;
}
sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs = new Prefs(sharedPrefs); prefs = new Prefs(sharedPrefs);
gbPrefs = new GBPrefs(prefs); gbPrefs = new GBPrefs(prefs);