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

Commit 4388ecbf authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Holo fixes and refinements"

parents 63eadbce ccb013ff
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -277,7 +277,6 @@ public class AlertDialog extends Dialog implements DialogInterface {
    public static class Builder {
        private final AlertController.AlertParams P;
        private int mTheme;
        private Context mWrappedContext;
        
        /**
         * Constructor using a context for this builder and the {@link AlertDialog} it creates.
@@ -291,7 +290,7 @@ public class AlertDialog extends Dialog implements DialogInterface {
         * the {@link AlertDialog} it creates.
         */
        public Builder(Context context, int theme) {
            P = new AlertController.AlertParams(context);
            P = new AlertController.AlertParams(new ContextThemeWrapper(context, theme));
            mTheme = theme;
        }
        
@@ -304,10 +303,7 @@ public class AlertDialog extends Dialog implements DialogInterface {
         * @return A Context for built Dialogs.
         */
        public Context getContext() {
            if (mWrappedContext == null) {
                mWrappedContext = new ContextThemeWrapper(P.mContext, mTheme);
            }
            return mWrappedContext;
            return P.mContext;
        }

        /**
+5 −0
Original line number Diff line number Diff line
@@ -1505,6 +1505,11 @@
    </style>

    <style name="Widget.Holo.Light.Button.Small">
        <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
        <item name="android:textColor">@android:color/primary_text_holo_light</item>
        <item name="android:minHeight">40dip</item>
        <item name="android:paddingLeft">24dip</item>
        <item name="android:paddingRight">24dip</item>
    </style>

    <style name="Widget.Holo.Light.Button.Inset">
+5 −5
Original line number Diff line number Diff line
@@ -756,8 +756,8 @@
        <item name="scrollbarTrackVertical">@null</item>

        <!-- Text selection handle attributes -->
        <item name="textSelectHandleLeft">@android:drawable/text_select_handle_middle</item>
        <item name="textSelectHandleRight">@android:drawable/text_select_handle_middle</item>
        <item name="textSelectHandleLeft">@android:drawable/text_select_handle_left</item>
        <item name="textSelectHandleRight">@android:drawable/text_select_handle_right</item>
        <item name="textSelectHandle">@android:drawable/text_select_handle_middle</item>
        <item name="textSelectHandleWindowStyle">@android:style/Widget.Holo.TextSelectHandle</item>

@@ -882,7 +882,7 @@
        <item name="textColorHighlightInverse">@android:color/highlighted_text_holo_dark</item>
        <item name="textColorLink">@android:color/link_text_holo_light</item>
        <item name="textColorLinkInverse">@android:color/link_text_holo_dark</item>
        <item name="textColorAlertDialogListItem">@android:color/primary_text_holo_dark</item>
        <item name="textColorAlertDialogListItem">@android:color/primary_text_holo_light</item>

        <item name="textAppearanceLarge">@android:style/TextAppearance.Holo.Light.Large</item>
        <item name="textAppearanceMedium">@android:style/TextAppearance.Holo.Light.Medium</item>
@@ -985,8 +985,8 @@
        <item name="scrollbarTrackVertical">@null</item>

        <!-- Text selection handle attributes -->
        <item name="textSelectHandleLeft">@android:drawable/text_select_handle_middle</item>
        <item name="textSelectHandleRight">@android:drawable/text_select_handle_middle</item>
        <item name="textSelectHandleLeft">@android:drawable/text_select_handle_left</item>
        <item name="textSelectHandleRight">@android:drawable/text_select_handle_right</item>
        <item name="textSelectHandle">@android:drawable/text_select_handle_middle</item>
        <item name="textSelectHandleWindowStyle">@android:style/Widget.Holo.TextSelectHandle</item>