Always allow disable notification when not parasitic (#2667)
This commit is contained in:
parent
348f04905f
commit
ac675cc5f2
|
|
@ -127,7 +127,6 @@ public class LogsFragment extends BaseFragment implements MenuProvider {
|
|||
this.optionsItemSelectListener = optionsItemSelectListener;
|
||||
}
|
||||
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
@Override
|
||||
public boolean onMenuItemSelected(@NonNull MenuItem item) {
|
||||
var itemId = item.getItemId();
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ public class SettingsFragment extends BaseFragment {
|
|||
public void onResume() {
|
||||
super.onResume();
|
||||
MaterialSwitchPreference notificationPreference = findPreference("enable_status_notification");
|
||||
if (notificationPreference != null && notificationPreference.isVisible()) {
|
||||
if (App.isParasitic && notificationPreference != null && notificationPreference.isVisible()) {
|
||||
setNotificationPreferenceEnabled(notificationPreference, ShortcutUtil.isLaunchShortcutPinned());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue