Merge pull request #1358 from quizzmaster/fix1318

Notifications about tbr suggestions. Fixes #1318
This commit is contained in:
Milos Kozak 2018-11-18 22:39:27 +01:00 committed by GitHub
commit bc41814946
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,8 +409,10 @@ public class LoopPlugin extends PluginBase {
.setAutoCancel(true)
.setPriority(Notification.PRIORITY_HIGH)
.setCategory(Notification.CATEGORY_ALARM)
.setVisibility(Notification.VISIBILITY_PUBLIC)
.setLocalOnly(true);
.setVisibility(Notification.VISIBILITY_PUBLIC);
if (SP.getBoolean("wearcontrol", false)) {
builder.setLocalOnly(true);
}
// Creates an explicit intent for an Activity in your app
Intent resultIntent = new Intent(MainApp.instance().getApplicationContext(), MainActivity.class);