diff --git a/CHANGELOG.md b/CHANGELOG.md index b44da638..18667806 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,8 @@ * New feature: store authentication credentials hashed (Issue #49) * New feature: store backup password encrypted (Issue #49) * New feature: set a static backup dir to disable the file selector (Issue #52) - * New feature: hidden features (see wiki) - * New hidden feature: SteamGuard tokens (Issue #38) + * New feature: special features (see wiki) + * New special feature: SteamGuard tokens (Issue #38) * Style/UI: black theme (Issue #47) * Bug fix: keep authentication settings when receiving a Panic Trigger (Issue #50) * Bug fix: progress bar animation with default duration scale diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/AboutActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/AboutActivity.java index 184c5c16..68d52613 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/AboutActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/AboutActivity.java @@ -115,10 +115,10 @@ public class AboutActivity extends BaseActivity { currentToast = Toast.makeText(getBaseContext(), String.valueOf(taps), Toast.LENGTH_SHORT); if (taps == 7) { - if (settings.getHiddenFeatures()) - currentToast = Toast.makeText(getBaseContext(), R.string.about_toast_hidden_features_enabled, Toast.LENGTH_LONG); + if (settings.getSpecialFeatures()) + currentToast = Toast.makeText(getBaseContext(), R.string.about_toast_special_features_enabled, Toast.LENGTH_LONG); else - enableHiddenFeatures(); + enableSpecialFeatures(); } if (currentToast != null) @@ -224,15 +224,15 @@ public class AboutActivity extends BaseActivity { }); } - private void enableHiddenFeatures() { + private void enableSpecialFeatures() { AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setTitle(R.string.about_title_hidden_features) - .setMessage(R.string.about_dialog_hidden_features) + builder.setTitle(R.string.about_title_special_features) + .setMessage(R.string.about_dialog_special_features) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { - settings.setHiddenFeatures(true); - Toast.makeText(getBaseContext(), R.string.about_toast_hidden_features, Toast.LENGTH_LONG).show(); + settings.setSpecialFeatures(true); + Toast.makeText(getBaseContext(), R.string.about_toast_special_features, Toast.LENGTH_LONG).show(); } }) .setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() { diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java index 2c36bce5..980465c7 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/MainActivity.java @@ -107,7 +107,7 @@ public class MainActivity extends BaseActivity final ArrayAdapter typeAdapter = new ArrayAdapter<>(this, android.R.layout.simple_expandable_list_item_1, Entry.PublicTypes.toArray(new Entry.OTPType[Entry.PublicTypes.size()])); final ArrayAdapter fullTypeAdapter = new ArrayAdapter<>(this, android.R.layout.simple_expandable_list_item_1, Entry.OTPType.values()); - if (settings.getHiddenFeatures()) + if (settings.getSpecialFeatures()) typeInput.setAdapter(fullTypeAdapter); else typeInput.setAdapter(typeAdapter); diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java b/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java index 0f69a919..a1b9b1c9 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java @@ -214,12 +214,12 @@ public class Settings { setBoolean(R.string.settings_key_security_backup_warning, value); } - public boolean getHiddenFeatures() { - return getBoolean(R.string.settings_key_hidden_features, false); + public boolean getSpecialFeatures() { + return getBoolean(R.string.settings_key_special_features, false); } - public void setHiddenFeatures(boolean value) { - setBoolean(R.string.settings_key_hidden_features, value); + public void setSpecialFeatures(boolean value) { + setBoolean(R.string.settings_key_special_features, value); } public SortMode getSortMode() { diff --git a/app/src/main/res/values/settings.xml b/app/src/main/res/values/settings.xml index df1ec3ae..84a98bbb 100644 --- a/app/src/main/res/values/settings.xml +++ b/app/src/main/res/values/settings.xml @@ -25,7 +25,7 @@ pref_security_backup_warning_shown pref_sort_mode - pref_hidden_features + pref_special_features none diff --git a/app/src/main/res/values/strings_about.xml b/app/src/main/res/values/strings_about.xml index 84614717..6a9ee62f 100644 --- a/app/src/main/res/values/strings_about.xml +++ b/app/src/main/res/values/strings_about.xml @@ -38,12 +38,12 @@ Report bugs or request new features Help to translate andOTP to your language - Hidden features - Are you sure you want to enable the hidden features? - Most of them are non-standard OTP algorithms which were implemented on special request. - They are not officially supported and can come with certain limitations, - please read (and understand) the page about "Hidden features" in the Github wiki to learn - more before using them. - Hidden features enabled - Hidden features already enabled + Special features + Are you sure you want to enable the special + features? Most of them are non-standard OTP algorithms which were implemented on special + request. They are not officially supported and can come with certain + limitations, please read (and understand) the page \"Special features\" in the Github + wiki to learn more before using them. + Special features enabled + Special features already enabled