send notification about tbr to watch if wearcontrol is false. Fixes #1318
This commit is contained in:
parent
653a98fd5b
commit
1935d5b011
1 changed files with 4 additions and 2 deletions
|
@ -399,8 +399,10 @@ public class LoopPlugin extends PluginBase {
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setPriority(Notification.PRIORITY_HIGH)
|
.setPriority(Notification.PRIORITY_HIGH)
|
||||||
.setCategory(Notification.CATEGORY_ALARM)
|
.setCategory(Notification.CATEGORY_ALARM)
|
||||||
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
.setVisibility(Notification.VISIBILITY_PUBLIC);
|
||||||
.setLocalOnly(true);
|
if (SP.getBoolean("wearcontrol", false)) {
|
||||||
|
builder.setLocalOnly(true);
|
||||||
|
}
|
||||||
|
|
||||||
// Creates an explicit intent for an Activity in your app
|
// Creates an explicit intent for an Activity in your app
|
||||||
Intent resultIntent = new Intent(MainApp.instance().getApplicationContext(), MainActivity.class);
|
Intent resultIntent = new Intent(MainApp.instance().getApplicationContext(), MainActivity.class);
|
||||||
|
|
Loading…
Reference in a new issue