show the path at Create New Folder dialog

This commit is contained in:
tibbi 2017-09-05 20:54:54 +02:00
parent a32d0f4f44
commit ce27f5399c
2 changed files with 6 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import java.io.File
class CreateNewFolderDialog(val activity: BaseSimpleActivity, val path: String, val callback: (path: String) -> Unit) {
init {
val view = activity.layoutInflater.inflate(R.layout.dialog_create_new_folder, null)
view.folder_path.text = activity.humanizePath(path).trimEnd('/') + "/"
AlertDialog.Builder(activity)
.setPositiveButton(R.string.ok, null)

View file

@ -9,6 +9,11 @@
android:paddingRight="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/folder_path"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<com.simplemobiletools.commons.views.MyEditText
android:id="@+id/folder_name"
android:layout_width="match_parent"