Add preference toggle for switching on/off WKD
This commit is contained in:
@@ -126,6 +126,7 @@ public final class Constants {
|
|||||||
public static final String CACHED_CONSOLIDATE = "cachedConsolidate";
|
public static final String CACHED_CONSOLIDATE = "cachedConsolidate";
|
||||||
public static final String SEARCH_KEYSERVER = "search_keyserver_pref";
|
public static final String SEARCH_KEYSERVER = "search_keyserver_pref";
|
||||||
public static final String SEARCH_KEYBASE = "search_keybase_pref";
|
public static final String SEARCH_KEYBASE = "search_keybase_pref";
|
||||||
|
public static final String SEARCH_WEB_KEY_DIRECTORY = "search_wkd_pref";
|
||||||
public static final String USE_NUMKEYPAD_FOR_SECURITY_TOKEN_PIN = "useNumKeypadForYubikeyPin";
|
public static final String USE_NUMKEYPAD_FOR_SECURITY_TOKEN_PIN = "useNumKeypadForYubikeyPin";
|
||||||
public static final String ENCRYPT_FILENAMES = "encryptFilenames";
|
public static final String ENCRYPT_FILENAMES = "encryptFilenames";
|
||||||
public static final String FILE_USE_COMPRESSION = "useFileCompression";
|
public static final String FILE_USE_COMPRESSION = "useFileCompression";
|
||||||
|
|||||||
@@ -347,7 +347,7 @@ public class Preferences {
|
|||||||
return CloudSearchPrefs.create(mSharedPreferences.getBoolean(Pref.SEARCH_KEYSERVER, true),
|
return CloudSearchPrefs.create(mSharedPreferences.getBoolean(Pref.SEARCH_KEYSERVER, true),
|
||||||
mSharedPreferences.getBoolean(Pref.SEARCH_KEYBASE, true),
|
mSharedPreferences.getBoolean(Pref.SEARCH_KEYBASE, true),
|
||||||
false,
|
false,
|
||||||
true,
|
mSharedPreferences.getBoolean(Pref.SEARCH_WEB_KEY_DIRECTORY, true),
|
||||||
getPreferredKeyserver());
|
getPreferredKeyserver());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -211,6 +211,8 @@
|
|||||||
<string name="pref_keybase_summary">"Search keys on keybase.io"</string>
|
<string name="pref_keybase_summary">"Search keys on keybase.io"</string>
|
||||||
<string name="pref_facebook">"Facebook"</string>
|
<string name="pref_facebook">"Facebook"</string>
|
||||||
<string name="pref_facebook_summary">"Search keys on Facebook by username"</string>
|
<string name="pref_facebook_summary">"Search keys on Facebook by username"</string>
|
||||||
|
<string name="pref_wkd">"Web Key Directory"</string>
|
||||||
|
<string name="pref_wkd_summary">"Search keys using Web Key Directory"</string>
|
||||||
|
|
||||||
<string name="label_sync_settings_keyserver_title">"Automatic key updates"</string>
|
<string name="label_sync_settings_keyserver_title">"Automatic key updates"</string>
|
||||||
<string name="label_sync_settings_keyserver_summary_on">"Every three days, keys are updated from the preferred keyserver"</string>
|
<string name="label_sync_settings_keyserver_summary_on">"Every three days, keys are updated from the preferred keyserver"</string>
|
||||||
|
|||||||
@@ -14,4 +14,9 @@
|
|||||||
android:key="search_keybase_pref"
|
android:key="search_keybase_pref"
|
||||||
android:summary="@string/pref_keybase_summary"
|
android:summary="@string/pref_keybase_summary"
|
||||||
android:title="@string/pref_keybase" />
|
android:title="@string/pref_keybase" />
|
||||||
|
<SwitchPreference
|
||||||
|
android:defaultValue="true"
|
||||||
|
android:key="search_wkd_pref"
|
||||||
|
android:summary="@string/pref_wkd_summary"
|
||||||
|
android:title="@string/pref_wkd" />
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
Reference in New Issue
Block a user