mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
Target Android Q
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
699007c53b
commit
5fe2c74cc7
@ -9,12 +9,12 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion(28)
|
compileSdkVersion(29)
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.zeapo.pwdstore"
|
applicationId = "com.zeapo.pwdstore"
|
||||||
minSdkVersion(21)
|
minSdkVersion(21)
|
||||||
targetSdkVersion(28)
|
targetSdkVersion(29)
|
||||||
versionCode = 10302
|
versionCode = 10302
|
||||||
versionName = "1.3.2"
|
versionName = "1.3.2"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
@ -193,12 +193,8 @@ class UserPreference : AppCompatActivity() {
|
|||||||
findPreference("clear_after_copy").isEnabled = sharedPreferences.getString("general_show_time", "45")?.toInt() != 0
|
findPreference("clear_after_copy").isEnabled = sharedPreferences.getString("general_show_time", "45")?.toInt() != 0
|
||||||
findPreference("clear_clipboard_20x").isEnabled = sharedPreferences.getString("general_show_time", "45")?.toInt() != 0
|
findPreference("clear_clipboard_20x").isEnabled = sharedPreferences.getString("general_show_time", "45")?.toInt() != 0
|
||||||
val keyPref = findPreference("openpgp_key_id_pref")
|
val keyPref = findPreference("openpgp_key_id_pref")
|
||||||
val selectedKeys: Array<String> = ArrayList<String>(
|
val selectedKeys = (sharedPreferences.getStringSet("openpgp_key_ids_set", null)
|
||||||
sharedPreferences.getStringSet(
|
?: HashSet<String>()).toTypedArray()
|
||||||
"openpgp_key_ids_set",
|
|
||||||
HashSet<String>()
|
|
||||||
)
|
|
||||||
).toTypedArray()
|
|
||||||
if (selectedKeys.isEmpty()) {
|
if (selectedKeys.isEmpty()) {
|
||||||
keyPref.summary = this.resources.getString(R.string.pref_no_key_selected)
|
keyPref.summary = this.resources.getString(R.string.pref_no_key_selected)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user