mirror of https://github.com/M66B/FairEmail.git
Hide hint when irrelevant
This commit is contained in:
parent
f9bdb3c8a2
commit
71706dc098
|
@ -57,6 +57,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
|
||||||
private CheckBox cbNotifyActionSeen;
|
private CheckBox cbNotifyActionSeen;
|
||||||
private TextView tvNotifyActionsPro;
|
private TextView tvNotifyActionsPro;
|
||||||
private Button btnManage;
|
private Button btnManage;
|
||||||
|
private TextView tvManageHint;
|
||||||
private ImageButton ibManage;
|
private ImageButton ibManage;
|
||||||
private SwitchCompat swLight;
|
private SwitchCompat swLight;
|
||||||
private Button btnSound;
|
private Button btnSound;
|
||||||
|
@ -85,6 +86,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
|
||||||
cbNotifyActionSeen = view.findViewById(R.id.cbNotifyActionSeen);
|
cbNotifyActionSeen = view.findViewById(R.id.cbNotifyActionSeen);
|
||||||
tvNotifyActionsPro = view.findViewById(R.id.tvNotifyActionsPro);
|
tvNotifyActionsPro = view.findViewById(R.id.tvNotifyActionsPro);
|
||||||
btnManage = view.findViewById(R.id.btnManage);
|
btnManage = view.findViewById(R.id.btnManage);
|
||||||
|
tvManageHint = view.findViewById(R.id.tvManageHint);
|
||||||
ibManage = view.findViewById(R.id.ibManage);
|
ibManage = view.findViewById(R.id.ibManage);
|
||||||
swLight = view.findViewById(R.id.swLight);
|
swLight = view.findViewById(R.id.swLight);
|
||||||
btnSound = view.findViewById(R.id.btnSound);
|
btnSound = view.findViewById(R.id.btnSound);
|
||||||
|
@ -154,6 +156,9 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
|
||||||
final Intent channel = new Intent(Settings.ACTION_CHANNEL_NOTIFICATION_SETTINGS)
|
final Intent channel = new Intent(Settings.ACTION_CHANNEL_NOTIFICATION_SETTINGS)
|
||||||
.putExtra(Settings.EXTRA_APP_PACKAGE, getContext().getPackageName())
|
.putExtra(Settings.EXTRA_APP_PACKAGE, getContext().getPackageName())
|
||||||
.putExtra(Settings.EXTRA_CHANNEL_ID, "notification");
|
.putExtra(Settings.EXTRA_CHANNEL_ID, "notification");
|
||||||
|
|
||||||
|
tvManageHint.setVisibility(channel.resolveActivity(pm) == null ? View.GONE : View.VISIBLE);
|
||||||
|
|
||||||
ibManage.setVisibility(channel.resolveActivity(pm) == null ? View.GONE : View.VISIBLE);
|
ibManage.setVisibility(channel.resolveActivity(pm) == null ? View.GONE : View.VISIBLE);
|
||||||
ibManage.setOnClickListener(new View.OnClickListener() {
|
ibManage.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue