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

Commit ab50b86b authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

Deprecate showSearchIconAsBadge and icon search attrs

mlebeau says:
"Basically, because we now show the app icon for in-app
search, showSearchIconAsBadge is a bit unnecessary, but it does in
fact still work. Basically if either showSearchIconAsBadge or
showSearchLabelAsBadge are specified, we grow the height of the search
bar and place the provided icon or the provided label, respectively,
above the text field and app icon. But we do not remove the app icon
if the developer specifies showSearchIconAsBadge - it's still just the
'badge area' above the icon."

Fixes:
http://b/issue?id=2105329
"Deprecate searchable attributes 'showSearchIconAsBadge' and 'icon'"

Change-Id: Ie2976aafe42b4ab870be9e64b34eb0ed441ebbb0
parent 3ccfaaa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6825,7 +6825,7 @@
 value="16843221"
 value="16843221"
 static="true"
 static="true"
 final="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
 visibility="public"
>
>
</field>
</field>
+7 −2
Original line number Original line Diff line number Diff line
@@ -2843,7 +2843,9 @@
             is also used as an icon to the left of the search box and you cannot modify this
             is also used as an icon to the left of the search box and you cannot modify this
             behavior, so including the icon attribute is unecessary and this may be
             behavior, so including the icon attribute is unecessary and this may be
             deprecated in the future.
             deprecated in the future.
             <i>Optional attribute.</i> -->
             <i>Optional attribute.</i>
             {@deprecated This will create a non-standard UI appearance, because the search bar UI
              now puts the activity or application icon beside the search box.} -->
        <attr name="icon" />
        <attr name="icon" />
        <!-- This is the user-displayed name of the searchable activity.  <i>Required
        <!-- This is the user-displayed name of the searchable activity.  <i>Required
            attribute.</i> -->
            attribute.</i> -->
@@ -2868,7 +2870,10 @@
          <flag name="showSearchLabelAsBadge" value="0x04" />
          <flag name="showSearchLabelAsBadge" value="0x04" />
          <!-- If set, this flag enables the display of the search target (icon) within the
          <!-- If set, this flag enables the display of the search target (icon) within the
               search bar.  (Note, overrides showSearchLabel)  If neither bad mode is selected,
               search bar.  (Note, overrides showSearchLabel)  If neither bad mode is selected,
               no badge will be shown.-->
               no badge will be shown.
              {@deprecated This will create a non-standard UI appearance, because the search bar UI
              now puts the activity or application icon beside the search box.}
               -->
          <flag name="showSearchIconAsBadge" value="0x08" />
          <flag name="showSearchIconAsBadge" value="0x08" />
          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to
          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to
               be considered as the text for suggestion query rewriting.  This should only
               be considered as the text for suggestion query rewriting.  This should only