diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/SnoozeActivity.java b/app/src/main/java/com/eveningoutpost/dexdrip/SnoozeActivity.java
index ca508a32b6..1bcbec0f52 100644
--- a/app/src/main/java/com/eveningoutpost/dexdrip/SnoozeActivity.java
+++ b/app/src/main/java/com/eveningoutpost/dexdrip/SnoozeActivity.java
@@ -10,6 +10,8 @@
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
+
+import com.eveningoutpost.dexdrip.Models.JoH;
import com.eveningoutpost.dexdrip.Models.UserError.Log;
import android.util.TypedValue;
@@ -40,6 +42,7 @@ public class SnoozeActivity extends ActivityWithMenu {
Button clearLowDisabled;
Button disableHighAlerts;
Button clearHighDisabled;
+ Button sendRemoteSnooze;
SharedPreferences prefs;
boolean doMgdl;
@@ -147,6 +150,8 @@ public void addListenerOnButton() {
//all alerts
disableAlerts = (Button)findViewById(R.id.button_disable_alerts);
clearDisabled = (Button)findViewById(R.id.enable_alerts);
+ sendRemoteSnooze = (Button)findViewById(R.id.send_remote_snooze);
+
buttonSnooze.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
int intValue = getTimeFromSnoozeValue(snoozeValue.getValue());
@@ -321,7 +326,7 @@ void displayStatus() {
}
long now = new Date().getTime();
if(activeBgAlert == null ) {
-
+ sendRemoteSnooze.setVisibility(Home.getPreferencesBooleanDefaultFalse("send_snooze_to_remote") ? View.VISIBLE : View.GONE);
if (prefs.getLong("alerts_disabled_until", 0) > now
||
(prefs.getLong("low_alerts_disabled_until", 0) > now
@@ -337,6 +342,7 @@ void displayStatus() {
buttonSnooze.setVisibility(View.GONE);
snoozeValue.setVisibility(View.GONE);
} else {
+ sendRemoteSnooze.setVisibility(View.GONE);
if(!aba.ready_to_alarm()) {
status = "Active alert exists named \"" + activeBgAlert.name
+ (aba.is_snoozed?"\" Alert snoozed until ":"\" Alert will rerise at ")
@@ -373,4 +379,9 @@ void displayStatus() {
}
+ public void setSendRemoteSnoozeOnClick(View v) {
+ JoH.static_toast_short("Remote snooze..");
+ AlertPlayer.getPlayer().Snooze(xdrip.getAppContext(), -1);
+ }
+
}
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_snooze.xml b/app/src/main/res/layout/activity_snooze.xml
index b8061c9a1b..c5aeb70db6 100644
--- a/app/src/main/res/layout/activity_snooze.xml
+++ b/app/src/main/res/layout/activity_snooze.xml
@@ -98,6 +98,13 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/re_enable_all_alerts"/>
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 4b7dfe9ed7..896754acc4 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -5,8 +5,8 @@
#bce6ff
#3F51B5
- #303F9F
- #FF4081
+ #303f9f
+ #ff4081
#999999
#62a262