Notification settings are pro features

This commit is contained in:
M66B
2019-05-16 11:10:01 +02:00
parent c07f72bd41
commit 976142178f
3 changed files with 13 additions and 2 deletions

View File

@@ -1249,6 +1249,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@TargetApi(Build.VERSION_CODES.O)
private void onActionCreateChannel() {
if (!Helper.isPro(context)) {
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast(new Intent(ActivityView.ACTION_SHOW_PRO));
return;
}
NotificationChannel channel = new NotificationChannel(
channelId, from.getAddress(),
NotificationManager.IMPORTANCE_HIGH);