Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bed4229 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski Committed by Android (Google) Code Review
Browse files

Merge "Update colors of the create dir dialog in DocumentsUI."

parents 5612b419 5527f645
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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>
+1 −5
Original line number Diff line number Diff line
@@ -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);