Update password strings on compression dialog

This commit is contained in:
Ensar Sarajčić 2023-07-15 16:21:55 +02:00
parent 173efd1896
commit 21949ef028
3 changed files with 4 additions and 4 deletions

View file

@ -64,7 +64,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:f54d4f7606'
implementation 'com.github.esensar:Simple-Commons:enter-password-dialog-improvements-SNAPSHOT'
implementation 'com.github.tibbi:AndroidPdfViewer:e6a533125b'
implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6'

View file

@ -46,7 +46,7 @@ class CompressAsDialog(val activity: BaseSimpleActivity, val path: String, val c
if (view.password_protect.isChecked) {
password = view.password.value
if (password.isEmpty()) {
activity.toast(R.string.empty_password)
activity.toast(R.string.empty_password_new)
return@OnClickListener
}
}

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/dialog_holder"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -27,7 +28,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/folder_hint"
android:layout_marginBottom="@dimen/activity_margin"
android:hint="@string/filename_without_zip">
<com.google.android.material.textfield.TextInputEditText
@ -49,7 +49,7 @@
android:layout_marginTop="@dimen/small_margin"
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:text="@string/password" />
android:text="@string/add_password" />
<com.simplemobiletools.commons.views.MyTextInputLayout
android:id="@+id/enter_password_hint"