Merge pull request #1843 from MilosKozak/foreground-service-fix
resolve dangling else and private constructor for singleton
This commit is contained in:
commit
d014962fc8
1 changed files with 5 additions and 3 deletions
|
@ -73,7 +73,7 @@ public class PersistentNotificationPlugin extends PluginBase {
|
||||||
/// End Android Auto
|
/// End Android Auto
|
||||||
|
|
||||||
|
|
||||||
public PersistentNotificationPlugin(Context ctx) {
|
private PersistentNotificationPlugin(Context ctx) {
|
||||||
super(new PluginDescription()
|
super(new PluginDescription()
|
||||||
.mainType(PluginType.GENERAL)
|
.mainType(PluginType.GENERAL)
|
||||||
.neverVisible(true)
|
.neverVisible(true)
|
||||||
|
@ -227,8 +227,10 @@ public class PersistentNotificationPlugin extends PluginBase {
|
||||||
builder.setContentText(line2 != null ? line2 : MainApp.gs(R.string.noprofileset));
|
builder.setContentText(line2 != null ? line2 : MainApp.gs(R.string.noprofileset));
|
||||||
builder.setSubText(line3 != null ? line3 : MainApp.gs(R.string.noprofileset));
|
builder.setSubText(line3 != null ? line3 : MainApp.gs(R.string.noprofileset));
|
||||||
/// Android Auto
|
/// Android Auto
|
||||||
if (unreadConversationBuilder != null) builder.extend(new NotificationCompat.CarExtender()
|
if (unreadConversationBuilder != null) {
|
||||||
|
builder.extend(new NotificationCompat.CarExtender()
|
||||||
.setUnreadConversation(unreadConversationBuilder.build()));
|
.setUnreadConversation(unreadConversationBuilder.build()));
|
||||||
|
}
|
||||||
/// End Android Auto
|
/// End Android Auto
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue