fix ui update glitches while in dev mode
diff --git a/src/com/fairphone/updater/FairphoneUpdater.java b/src/com/fairphone/updater/FairphoneUpdater.java
index 5451929..85ca160 100644
--- a/src/com/fairphone/updater/FairphoneUpdater.java
+++ b/src/com/fairphone/updater/FairphoneUpdater.java
@@ -85,7 +85,6 @@
public static boolean DEV_MODE_ENABLED;
public static boolean BETA_MODE_ENABLED;
- private int mIsDevModeCounter;
private TextView headerMainFairphoneText;
private TextView headerMainAndroidText;
@@ -125,7 +124,6 @@
}
DEV_MODE_ENABLED = false;
- mIsDevModeCounter = 10;
// update first times
mIsFirstTimeAndroid = mSharedPreferences.getBoolean(PREFERENCE_FIRST_TIME_ANDROID, true);
@@ -239,7 +237,7 @@
editor.commit();
}
- public void forceConfiDownload(){
+ public void forceConfigDownload(){
Utils.downloadConfigFile(this, true);
}
@@ -593,28 +591,6 @@
return topFragment;
}
- public void onEnableDevMode()
- {
- if (!DEV_MODE_ENABLED)
- {
- mIsDevModeCounter--;
-
- Log.d(TAG, "Developer mode in " + mIsDevModeCounter + " Clicks...");
-
- if (mIsDevModeCounter <= 0)
- {
- DEV_MODE_ENABLED = true;
-
- Toast.makeText(getApplicationContext(), getResources().getString(R.string.dev_mode_message), Toast.LENGTH_LONG).show();
-
- Log.d(TAG, "Developer mode enabled for this session");
-
- forceConfiDownload();
- //Utils.downloadConfigFile(this, true);
- }
- }
- }
-
public boolean isUpdateAvailable()
{
boolean update = false;