diff options
| author | 2015-08-04 09:48:42 +0000 | |
|---|---|---|
| committer | 2015-08-04 09:48:42 +0000 | |
| commit | 3bed4229d999b7a7f6ba1c106544b52a63fbf4e1 (patch) | |
| tree | 38a11532d0af14e5f478f54ba416ad5be3919df2 | |
| parent | 5612b419b293bc95065615b6bdac76c5a4fcf4e2 (diff) | |
| parent | 5527f6457ed78771fe27352533cdc0f7123bd6e6 (diff) | |
Merge "Update colors of the create dir dialog in DocumentsUI."
| -rw-r--r-- | packages/DocumentsUI/res/values/styles.xml | 6 | ||||
| -rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/CreateDirectoryFragment.java | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/packages/DocumentsUI/res/values/styles.xml b/packages/DocumentsUI/res/values/styles.xml index a1ad7e4616bc..95c1d9cb56df 100644 --- a/packages/DocumentsUI/res/values/styles.xml +++ b/packages/DocumentsUI/res/values/styles.xml @@ -34,6 +34,7 @@ <item name="android:windowNoTitle">true</item> <item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item> + <item name="android:alertDialogTheme">@android:style/Theme.Material.Light.Dialog.Alert</item> </style> <style name="DocumentsNonDialogTheme" parent="@android:style/Theme.Material.DayNight.DarkActionBar"> @@ -58,6 +59,10 @@ <item name="android:background">@color/material_grey_600</item> </style> + <style name="AlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert"> + <item name="android:colorAccent">@color/material_blue_700</item> + </style> + <style name="StandaloneTheme" parent="@android:style/Theme.Material.DayNight.DarkActionBar"> <item name="android:actionBarWidgetTheme">@null</item> @@ -73,6 +78,7 @@ <item name="android:windowNoTitle">true</item> <item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item> + <item name="android:alertDialogTheme">@style/AlertDialogTheme</item> </style> </resources> diff --git a/packages/DocumentsUI/src/com/android/documentsui/CreateDirectoryFragment.java b/packages/DocumentsUI/src/com/android/documentsui/CreateDirectoryFragment.java index 0577bf10cc66..1b6d6426fdda 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/CreateDirectoryFragment.java +++ b/packages/DocumentsUI/src/com/android/documentsui/CreateDirectoryFragment.java @@ -60,11 +60,7 @@ public class CreateDirectoryFragment extends DialogFragment { final Context context = getActivity(); final ContentResolver resolver = context.getContentResolver(); - // We need to specify android.R.style.Theme_DeviceDefault_Dialog explicitly, - // because the application theme 'DialogWhenReallyLarge' has - // fixed window size properties for large screen devices. - final AlertDialog.Builder builder = new AlertDialog.Builder( - context, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT); + final AlertDialog.Builder builder = new AlertDialog.Builder(context); final LayoutInflater dialogInflater = LayoutInflater.from(builder.getContext()); final View view = dialogInflater.inflate(R.layout.dialog_create_dir, null, false); |