mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 11:03:07 +00:00
Link priority setting to message channel setting on Oreo+
When using notification channels, us setting priority actually has no effect. So instead of having a non-functional setting, we've routed the notification priority setting to go to the system notification channel settings page for our Messages channel.
This commit is contained in:
@@ -16,8 +16,9 @@ import org.thoughtcrime.securesms.util.ViewUtil;
|
||||
|
||||
public class SignalListPreference extends ListPreference {
|
||||
|
||||
private TextView rightSummary;
|
||||
private TextView rightSummary;
|
||||
private CharSequence summary;
|
||||
private boolean dialogDisabled;
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
|
||||
public SignalListPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
||||
@@ -63,4 +64,15 @@ public class SignalListPreference extends ListPreference {
|
||||
this.rightSummary.setText(summary);
|
||||
}
|
||||
}
|
||||
|
||||
public void disableDialog() {
|
||||
dialogDisabled = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onClick() {
|
||||
if (!dialogDisabled) {
|
||||
super.onClick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user