From abe00f63681f83ee629c7e995800cb8b4c956c38 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 6 Nov 2016 16:24:32 +0100 Subject: [PATCH] add a dialog prefix to the write permission layout --- .../main/java/com/simplemobiletools/filemanager/Constants.java | 2 +- .../filemanager/dialogs/WritePermissionDialog.kt | 2 +- .../{write_permission.xml => dialog_write_permission.xml} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename app/src/main/res/layout/{write_permission.xml => dialog_write_permission.xml} (100%) diff --git a/app/src/main/java/com/simplemobiletools/filemanager/Constants.java b/app/src/main/java/com/simplemobiletools/filemanager/Constants.java index 4e9d0cc2..a185ca4d 100644 --- a/app/src/main/java/com/simplemobiletools/filemanager/Constants.java +++ b/app/src/main/java/com/simplemobiletools/filemanager/Constants.java @@ -2,11 +2,11 @@ package com.simplemobiletools.filemanager; public class Constants { public static final String PATH = "path"; - public static final String TREE_URI = "tree_uri"; // shared preferences public static final String PREFS_KEY = "File Manager"; public static final String IS_FIRST_RUN = "is_first_run"; public static final String IS_DARK_THEME = "is_dark_theme"; public static final String SHOW_HIDDEN = "show_hidden"; + public static final String TREE_URI = "tree_uri"; } diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/WritePermissionDialog.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/WritePermissionDialog.kt index 1faa2aef..ca0f9c8d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/WritePermissionDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/WritePermissionDialog.kt @@ -9,7 +9,7 @@ class WritePermissionDialog(val context: Context, val listener: OnWritePermissio var dialog: AlertDialog? = null init { - val view = LayoutInflater.from(context).inflate(R.layout.write_permission, null) + val view = LayoutInflater.from(context).inflate(R.layout.dialog_write_permission, null) dialog = AlertDialog.Builder(context) .setTitle(context.resources.getString(R.string.confirm_storage_access_title)) diff --git a/app/src/main/res/layout/write_permission.xml b/app/src/main/res/layout/dialog_write_permission.xml similarity index 100% rename from app/src/main/res/layout/write_permission.xml rename to app/src/main/res/layout/dialog_write_permission.xml