File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
catalog/java/io/material/catalog/bottomappbar Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change 1818
1919import io .material .catalog .R ;
2020
21- import android .annotation .SuppressLint ;
2221import android .os .Bundle ;
2322import androidx .appcompat .app .AppCompatActivity ;
2423import androidx .appcompat .widget .Toolbar ;
@@ -185,7 +184,6 @@ private void setUpBottomAppBarShapeAppearance() {
185184 babBackground .getShapeAppearanceModel ().toBuilder ().setTopEdge (topEdge ).build ());
186185 }
187186
188- @ SuppressLint ("NewApi" )
189187 protected void setUpBottomDrawer (View view ) {
190188 View bottomDrawer = coordinatorLayout .findViewById (R .id .bottom_drawer );
191189 bottomDrawerBehavior = BottomSheetBehavior .from (bottomDrawer );
@@ -195,7 +193,6 @@ protected void setUpBottomDrawer(View view) {
195193 v -> bottomDrawerBehavior .setState (BottomSheetBehavior .STATE_HALF_EXPANDED ));
196194 bar .setNavigationIcon (R .drawable .ic_drawer_menu_24px );
197195 bar .replaceMenu (R .menu .demo_primary );
198- bar .getMenu ().findItem (R .id .menu_search ).getActionView ().requestFocus ();
199196 }
200197
201198 private void showSnackbar (CharSequence text ) {
Original file line number Diff line number Diff line change 1818<menu xmlns : android =" http://schemas.android.com/apk/res/android"
1919 xmlns : app =" http://schemas.android.com/apk/res-auto" >
2020 <item
21- android : id =" @+id/menu_search"
2221 android : icon =" @drawable/ic_search_24px"
2322 android : title =" @string/cat_bottomappbar_search"
2423 app : showAsAction =" ifRoom" />
You can’t perform that action at this time.
0 commit comments