Loading res/values/styles.xml +6 −0 Original line number Diff line number Diff line Loading @@ -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"> Loading @@ -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> Loading @@ -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> src/com/android/documentsui/CreateDirectoryFragment.java +1 −5 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
res/values/styles.xml +6 −0 Original line number Diff line number Diff line Loading @@ -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"> Loading @@ -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> Loading @@ -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>
src/com/android/documentsui/CreateDirectoryFragment.java +1 −5 Original line number Diff line number Diff line Loading @@ -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); Loading