Skip to content

Commit

Permalink
Removed unecessary language verification before creating a notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefbsantos committed Oct 16, 2014
1 parent e853e50 commit 059b193
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/mobi/boilr/boilr/utils/Notifications.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ private static Notification.Builder setCommonNotificationProps(Context context,
}

public static void showLowPriorityNotification(Context context, Alarm alarm) {
Languager.setLanguage(context);
int alarmID = alarm.getId();
String firingReason = getFiringReason(context, alarm);
Notification.Builder notification = setCommonNotificationProps(context, alarmID, firingReason);
Expand All @@ -50,7 +49,6 @@ public static void showLowPriorityNotification(Context context, Alarm alarm) {
public static void showAlarmNotification(Context context, Alarm alarm) {
int alarmID = alarm.getId();
// Close dialogs and window shade, so this will display
Languager.setLanguage(context);
context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
String firingReason = getFiringReason(context, alarm);
Notification.Builder notification = setCommonNotificationProps(context, alarmID, firingReason);
Expand All @@ -77,7 +75,6 @@ public static boolean canKeepMonitoring(Alarm alarm) {
}

public static void showNoInternetNotification(Context context) {
Languager.setLanguage(context);
if(noInternetNotification == null) {
Intent changeSettingsIntent = new Intent(context, SettingsActivity.class);
changeSettingsIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Expand Down

0 comments on commit 059b193

Please sign in to comment.