Switched to app bar

This commit is contained in:
M66B
2024-05-17 12:33:50 +02:00
parent 00ab42f973
commit 1083865e77
23 changed files with 201 additions and 37 deletions

View File

@@ -1873,7 +1873,9 @@ public class FragmentCompose extends FragmentBase {
final Context context = getContext();
PopupMenuLifecycle.insertIcons(context, menu, false);
LayoutInflater infl = LayoutInflater.from(context);
ActionBar actionBar = getSupportActionBar();
Context actionBarContext = (actionBar == null ? context : actionBar.getThemedContext());
LayoutInflater infl = LayoutInflater.from(actionBarContext);
ImageButton ibOpenAi = (ImageButton) infl.inflate(R.layout.action_button, null);
ibOpenAi.setId(View.generateViewId());