|
|
|
@ -108,6 +108,7 @@ import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
|
import androidx.appcompat.app.ActionBar;
|
|
|
|
|
import androidx.appcompat.app.AlertDialog;
|
|
|
|
|
import androidx.appcompat.widget.PopupMenu;
|
|
|
|
|
import androidx.appcompat.widget.SwitchCompat;
|
|
|
|
@ -1572,11 +1573,10 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
menu.findItem(R.id.menu_zoom).setTitle(ssbZoom);
|
|
|
|
|
PopupMenuLifecycle.insertIcon(context, menu.findItem(R.id.menu_zoom), false);
|
|
|
|
|
|
|
|
|
|
FragmentActivity activity = getActivity();
|
|
|
|
|
Context tcontext = (activity instanceof ActivityBase
|
|
|
|
|
? ((ActivityBase) activity).getSupportActionBar().getThemedContext() : context);
|
|
|
|
|
ActionBar actionBar = getSupportActionBar();
|
|
|
|
|
Context actionBarContext = (actionBar == null ? context : actionBar.getThemedContext());
|
|
|
|
|
int colorEncrypt = Helper.resolveColor(context, R.attr.colorEncrypt);
|
|
|
|
|
int colorActionForeground = Helper.resolveColor((tcontext), android.R.attr.textColorPrimary);
|
|
|
|
|
int colorActionForeground = Helper.resolveColor(actionBarContext, android.R.attr.textColorPrimary);
|
|
|
|
|
|
|
|
|
|
View v = menu.findItem(R.id.menu_encrypt).getActionView();
|
|
|
|
|
ImageButton ib = v.findViewById(R.id.button);
|
|
|
|
|