Skip to content

Commit

Permalink
format Android code (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikuB committed Aug 14, 2020
1 parent 5344b52 commit 8c41860
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private static Notification createNotification(Context context, NotificationDeta
setTimeoutAfter(notificationDetails, builder);
Notification notification = builder.build();
if (notificationDetails.additionalFlags != null && notificationDetails.additionalFlags.length > 0) {
for(int additionalFlag:notificationDetails.additionalFlags) {
for (int additionalFlag : notificationDetails.additionalFlags) {
notification.flags |= additionalFlag;
}
}
Expand Down Expand Up @@ -862,7 +862,7 @@ private void initialize(MethodCall call, Result result) {
}

private static boolean launchedActivityFromHistory(Intent intent) {
return intent != null && (intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) == Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY;
return intent != null && (intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) == Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY;
}


Expand Down Expand Up @@ -975,10 +975,10 @@ private void createNotificationChannel(MethodCall call, Result result) {

private void deleteNotificationChannel(MethodCall call, Result result) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationManager notificationManager = (NotificationManager) applicationContext.getSystemService(Context.NOTIFICATION_SERVICE);
String channelId = call.arguments();
notificationManager.deleteNotificationChannel(channelId);
result.success(null);
NotificationManager notificationManager = (NotificationManager) applicationContext.getSystemService(Context.NOTIFICATION_SERVICE);
String channelId = call.arguments();
notificationManager.deleteNotificationChannel(channelId);
result.success(null);
}
}
}

0 comments on commit 8c41860

Please sign in to comment.