fix adding local auth

This commit is contained in:
Phillip Thelen 2019-03-18 18:40:23 +01:00
parent 960919f401
commit b40492d303
3 changed files with 12 additions and 3 deletions

View file

@ -150,7 +150,7 @@ android {
buildConfigField "String", "STORE", "\"google\""
multiDexEnabled true
versionCode 2075
versionCode 2076
versionName "1.8"
}

View file

@ -3,6 +3,12 @@
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/spacing_medium">
<TextView
android:id="@+id/emailTitleTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/email"
android:layout_marginTop="@dimen/content_section_spacing"/>
<EditText
android:id="@+id/editText"
android:layout_width="match_parent"
@ -16,7 +22,8 @@
<EditText
android:id="@+id/passwordEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:inputType="textPassword" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -25,5 +32,6 @@
<EditText
android:id="@+id/passwordRepeatEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:inputType="textPassword"/>
</LinearLayout>

View file

@ -83,6 +83,7 @@ class AuthenticationPreferenceFragment: BasePreferencesFragment() {
}
"reset_account" -> showAccountResetConfirmation()
"delete_account" -> showAccountDeleteConfirmation()
"add_local_auth" -> showAddLocalNotificationDialog()
else -> {
val clipMan = activity?.getSystemService(Context.CLIPBOARD_SERVICE) as? ClipboardManager
clipMan?.primaryClip = ClipData.newPlainText(preference.key, preference.summary)