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

Commit c8e99f88 authored by Weili Yao's avatar Weili Yao Committed by Josh Guilfoyle
Browse files

Theming SearchDialog

CR: Josh Guilfoyle
parent 64d00f8b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -134,7 +134,13 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
     * @param context Application Context we can use for system acess
     */
    public SearchDialog(Context context) {
        super(context, com.android.internal.R.style.Theme_SearchBar);
        super(context, resolveDefaultTheme(context, 0));
    }

    static int resolveDefaultTheme(Context context, int theme) {
        return Dialog.resolveDefaultTheme(context, theme,
                android.R.styleable.Theme_searchDialogTheme,
                com.android.internal.R.style.Theme_SearchBar);
    }

    /**
+1 −0
Original line number Diff line number Diff line
@@ -311,6 +311,7 @@
        <eat-comment />
        <attr name="dialogTheme" format="reference" />
        <attr name="alertDialogTheme" format="reference" />
        <attr name="searchDialogTheme" format="reference" />
        
        <!-- ============ -->
        <!-- Alert Dialog styles -->
+1 −0
Original line number Diff line number Diff line
@@ -1103,6 +1103,7 @@

  <public type="attr" name="dialogTheme" id="0x0101028a" />
  <public type="attr" name="alertDialogTheme" id="0x0101028b" />
  <public type="attr" name="searchDialogTheme" id="0x0101028d" />
  <public type="attr" name="listItemTextViewStyle" id="0x0101028c" />
  <!-- Someone is already using 0x0101028a? -->
  <eat-comment />
+1 −0
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@
        <item name="dialogTheme">@android:style/Theme.Dialog</item>
        <item name="alertDialogTheme">@android:style/Theme.Dialog.Alert</item>
        <item name="alertDialogStyle">@android:style/AlertDialog</item>
        <item name="searchDialogTheme">@android:style/Theme.SearchBar</item>
        
        <!-- Panel attributes -->
        <item name="panelBackground">@android:drawable/menu_background</item>