mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Dummy weather notifucation config activity
This commit is contained in:
parent
38e234552d
commit
1e24fa7ad8
@ -220,7 +220,7 @@
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<activity android:name=".externalevents.WeatherNotificationConfig"
|
||||
<activity android:name=".activities.WeatherNotificationConfig"
|
||||
android:label="mockup">
|
||||
<intent-filter>
|
||||
<action android:name="ru.gelin.android.weather.notification.ACTION_WEATHER_SKIN_PREFERENCES"/>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -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
|
||||
|
||||
}
|
25
app/src/main/res/layout/activity_weather_notification.xml
Normal file
25
app/src/main/res/layout/activity_weather_notification.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" android:layout_margin="10dp">
|
||||
|
||||
<TextView
|
||||
android:text="Weather on your Pebble"
|
||||
android:textAlignment="center"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"/>
|
||||
|
||||
<android.support.v4.widget.Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/activity_vertical_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/weather_notification_label"
|
||||
android:text="@string/weather_notification_label"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
@ -372,4 +372,5 @@
|
||||
<!-- Strings related to Pebble Pairing Activity-->
|
||||
<string name="title_activity_pebble_pairing">Pebble Pairing</string>
|
||||
<string name="pebble_pairing_hint">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</string>
|
||||
<string name="weather_notification_label">Enable this style to get weather information on your Pebble.\n\nConfiguration will be possible in a later version.</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user