From 1e24fa7ad811af958ed6bd22e8ffbbe464471614 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sat, 14 Jan 2017 00:26:21 +0100 Subject: [PATCH] Dummy weather notifucation config activity --- app/src/main/AndroidManifest.xml | 2 +- .../activities/WeatherNotificationConfig.java | 15 +++++++++++ .../WeatherNotificationConfig.java | 9 ------- .../layout/activity_weather_notification.xml | 25 +++++++++++++++++++ app/src/main/res/values/strings.xml | 1 + 5 files changed, 42 insertions(+), 10 deletions(-) create mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/WeatherNotificationConfig.java delete mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/WeatherNotificationConfig.java create mode 100644 app/src/main/res/layout/activity_weather_notification.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e1b691f8..ff2b210f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -220,7 +220,7 @@ - diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/WeatherNotificationConfig.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/WeatherNotificationConfig.java new file mode 100644 index 00000000..49574bed --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/WeatherNotificationConfig.java @@ -0,0 +1,15 @@ +package nodomain.freeyourgadget.gadgetbridge.activities; + +import android.os.Bundle; +import android.os.PersistableBundle; +import android.widget.TextView; + +import nodomain.freeyourgadget.gadgetbridge.R; + +public class WeatherNotificationConfig extends GBActivity { + @Override + public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) { + super.onCreate(savedInstanceState, persistentState); + setContentView(R.layout.activity_weather_notification); + } +} diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/WeatherNotificationConfig.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/WeatherNotificationConfig.java deleted file mode 100644 index a2b325e3..00000000 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/WeatherNotificationConfig.java +++ /dev/null @@ -1,9 +0,0 @@ -package nodomain.freeyourgadget.gadgetbridge.externalevents; - -import android.app.Activity; - -public class WeatherNotificationConfig extends Activity { - - //TODO: we just need the user to enable us in the weather notification settings. There must be a better way - -} diff --git a/app/src/main/res/layout/activity_weather_notification.xml b/app/src/main/res/layout/activity_weather_notification.xml new file mode 100644 index 00000000..bbb5a737 --- /dev/null +++ b/app/src/main/res/layout/activity_weather_notification.xml @@ -0,0 +1,25 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 522883d9..64b880f4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -372,4 +372,5 @@ Pebble Pairing A pairing dialog is expected to pop up on your Android device. If that does not happen, look in the notification drawer and accept the pairing request. After that accept the pairing request on your Pebble + Enable this style to get weather information on your Pebble.\n\nConfiguration will be possible in a later version.