Skip to content

Commit

Permalink
fix(ui): Special for Honeycomb
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm committed Apr 16, 2024
1 parent 0eb238e commit 56a4211
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,22 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
inflater.inflate(R.menu.audio, menu);
fragment_menu = menu;
try {
inflater.inflate(R.menu.audio, menu);
fragment_menu = menu;
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
public void onPrepareOptionsMenu(Menu menu) {
super.onPrepareOptionsMenu(menu);
createSearchItem(menu);
try {
createSearchItem(menu);
} catch (Exception e){

}
}

private void createSearchItem(Menu menu) {
Expand Down Expand Up @@ -265,7 +273,11 @@ public void closeSearchItem() {
ab.getCustomView()
.findViewById(R.id.custom_ab_layout)
.setVisibility(View.VISIBLE);
searchView.setIconified(true);
try {
searchView.setIconified(true);
} catch (Exception e) {
e.printStackTrace();
}
createSearchResultsAdapter(audios);
} else {
final dev.tinelix.retro_ab.ActionBar actionBar = getActivity().findViewById(R.id.actionbar);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/preferences_debug.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
android:layout="@layout/pref_widget_checkbox"
android:title="@string/use_legacy_http_client"
android:summary="@string/use_legacy_http_client_description"/>

<Preference
android:key="causeAppToCrash"
android:title="@string/cause_app_to_crash"
Expand Down

0 comments on commit 56a4211

Please sign in to comment.