mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Reset component states
This commit is contained in:
@@ -2362,7 +2362,14 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
if (item.getItemId() == R.id.menu_default) {
|
||||
FragmentOptions.reset(getContext(), RESET_OPTIONS, null);
|
||||
Context context = getContext();
|
||||
Helper.enableComponent(context, ServicePowerControl.class, false);
|
||||
Helper.enableComponent(context, ActivitySendSelf.class, false);
|
||||
Helper.enableComponent(context, ActivitySearch.class, BuildConfig.DEBUG);
|
||||
Helper.enableComponent(context, ActivityAnswer.class, false);
|
||||
Helper.enableComponent(context, ReceiverAutoStart.class, true);
|
||||
Helper.enableComponent(context, ActivityDMARC.class, !Helper.isPlayStoreInstall());
|
||||
FragmentOptions.reset(context, RESET_OPTIONS, null);
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
|
||||
Reference in New Issue
Block a user