From 3d9df4e18ed25eb05c45d54803d9ede2297e1005 Mon Sep 17 00:00:00 2001 From: RoumenGeorgiev <30696147+RoumenGeorgiev@users.noreply.github.com> Date: Sat, 5 Aug 2017 11:20:09 +0300 Subject: [PATCH] Using equals() instead of == on line 1811 --- .../androidaps/plugins/Overview/OverviewFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index 86664f47b9..dcd7c356f5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -1808,7 +1808,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, } // Adding current time to snooze if we got staleData log.debug("Notification text is: "+notification.text); - if(notification.text == MainApp.sResources.getString(R.string.nsalarm_staledata)){ + if(notification.text.equals(MainApp.sResources.getString(R.string.nsalarm_staledata))){ NotificationStore nstore = getPlugin().notificationStore; long msToSnooze = SP.getInt("nsalarm_staledatavalue",15)*60*1000L; log.debug("snooze nsalarm_staledatavalue in minutes is "+SP.getInt("nsalarm_staledatavalue",15)+"\n in ms is: "+msToSnooze+" currentTimeMillis is: "+System.currentTimeMillis());