show the path at Create New Folder dialog
This commit is contained in:
parent
a32d0f4f44
commit
ce27f5399c
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue