do not show the file path at renaming

This commit is contained in:
tibbi 2021-03-05 11:20:01 +01:00
parent df7cdc681c
commit 5e0cea2cd5
3 changed files with 16 additions and 16 deletions

View file

@ -6,7 +6,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.34.8'
propVersionName = '5.34.9'
kotlin_version = '1.4.31'
}

View file

@ -20,11 +20,10 @@ class RenameItemDialog(val activity: BaseSimpleActivity, val path: String, val c
val extension = fullName.substring(dotAt + 1)
rename_item_extension.setText(extension)
} else {
rename_item_hint.beGone()
rename_item_extension_hint.beGone()
}
rename_item_name.setText(name)
rename_item_path.text = "${activity.humanizePath(path.getParentPath()).trimEnd('/')}/"
}
AlertDialog.Builder(activity)

View file

@ -6,23 +6,24 @@
android:orientation="vertical"
android:padding="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/rename_item_path"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/tiny_margin" />
<com.simplemobiletools.commons.views.MyEditText
android:id="@+id/rename_item_name"
<com.simplemobiletools.commons.views.MyTextInputLayout
android:id="@+id/rename_item_title_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_margin"
android:singleLine="true"
android:textCursorDrawable="@null"
android:textSize="@dimen/normal_text_size" />
android:hint="@string/title">
<com.simplemobiletools.commons.views.MyEditText
android:id="@+id/rename_item_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_margin"
android:singleLine="true"
android:textCursorDrawable="@null"
android:textSize="@dimen/normal_text_size" />
</com.simplemobiletools.commons.views.MyTextInputLayout>
<com.simplemobiletools.commons.views.MyTextInputLayout
android:id="@+id/rename_item_hint"
android:id="@+id/rename_item_extension_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/extension">