Kaydet (Commit) d30e0aea authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

android: rename "editMode" to "experimentalMode"

Change-Id: I3fcb7bb2fda925a1c5b2633ac7f6846fda0dabf8
üst 89089204
...@@ -58,7 +58,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity { ...@@ -58,7 +58,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity {
private static GeckoLayerClient mLayerClient; private static GeckoLayerClient mLayerClient;
private static LOKitThread sLOKitThread; private static LOKitThread sLOKitThread;
private static boolean mEnableEditing; private static boolean mIsExperimentalMode;
private int providerId; private int providerId;
private URI documentUri; private URI documentUri;
...@@ -89,7 +89,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity { ...@@ -89,7 +89,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity {
} }
public static boolean isExperimentalMode() { public static boolean isExperimentalMode() {
return mEnableEditing; return mIsExperimentalMode;
} }
public boolean usesTemporaryFile() { public boolean usesTemporaryFile() {
...@@ -103,7 +103,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity { ...@@ -103,7 +103,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
SharedPreferences sPrefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); SharedPreferences sPrefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
mEnableEditing = sPrefs.getBoolean(ENABLE_EXPERIMENTAL_PREFS_KEY, false); mIsExperimentalMode = sPrefs.getBoolean(ENABLE_EXPERIMENTAL_PREFS_KEY, false);
if (sPrefs.getInt(ASSETS_EXTRACTED_PREFS_KEY, 0) != BuildConfig.VERSION_CODE) { if (sPrefs.getInt(ASSETS_EXTRACTED_PREFS_KEY, 0) != BuildConfig.VERSION_CODE) {
if(copyFromAssets(getAssets(), "unpack", getApplicationInfo().dataDir)) { if(copyFromAssets(getAssets(), "unpack", getApplicationInfo().dataDir)) {
...@@ -302,8 +302,8 @@ public class LibreOfficeMainActivity extends AppCompatActivity { ...@@ -302,8 +302,8 @@ public class LibreOfficeMainActivity extends AppCompatActivity {
Log.i(LOGTAG, "onResume.."); Log.i(LOGTAG, "onResume..");
// check for config change // check for config change
boolean bEnableExperimental = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(ENABLE_EXPERIMENTAL_PREFS_KEY, false); boolean bEnableExperimental = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(ENABLE_EXPERIMENTAL_PREFS_KEY, false);
if (bEnableExperimental != mEnableEditing) { if (bEnableExperimental != mIsExperimentalMode) {
mEnableEditing = bEnableExperimental; mIsExperimentalMode = bEnableExperimental;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment