Added notification to alert the user if data sharing is not enabled, and provide information on why it is good to enable it.
This commit is contained in:
BIN
app/src/main/res/drawable/datasharing_fault_24x24.png
Normal file
BIN
app/src/main/res/drawable/datasharing_fault_24x24.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 347 B |
BIN
app/src/main/res/drawable/datasharing_query_24x24.png
Normal file
BIN
app/src/main/res/drawable/datasharing_query_24x24.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 311 B |
@@ -2,11 +2,11 @@
|
||||
<!-- Copyright (C) 2009 The Android Open Source Project
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
-->
|
||||
<ScrollView>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
|
||||
34
app/src/main/res/layout/data_sharing_dialog_layout.xml
Normal file
34
app/src/main/res/layout/data_sharing_dialog_layout.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 The Android Open Source Project
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
-->
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dip">
|
||||
|
||||
<!--
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:autoLink="web"
|
||||
android:text="@string/datasharing_about_title"
|
||||
/>
|
||||
-->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="20dip"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/datasharing_about_text"
|
||||
android:autoLink="web"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
@@ -35,6 +35,13 @@
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/data_sharing_log_in" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_about_datasharing"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_action_settings"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="About Data Sharing..." />
|
||||
|
||||
</group>
|
||||
<group android:id="@+id/grp4">
|
||||
<item
|
||||
|
||||
@@ -348,4 +348,20 @@
|
||||
<string name="error_server_not_running">ERROR: OpenSeizureDetector Server is not running - please re-start it</string>
|
||||
<string name="system_logs">System Logs</string>
|
||||
<string name="logged_in_as_user_id">Logged in as User Id:</string>
|
||||
<string name="datasharing_notification_text">Select for more information</string>
|
||||
<string name="datasharing_notification_title">OpenSeizureDetector Data Sharing Problem</string>
|
||||
<string name="datasharing_about_title">OpenSeizureDetector Data Sharing</string>
|
||||
<string name="datasharing_about_text">
|
||||
Data Sharing is not working correctly. \n
|
||||
This might be because you have not registered an account and logged in to the data sharing system,\n
|
||||
or it may be a networking problem. \n\n
|
||||
<b>Please register for Data Sharing and Log in using the App menu or button below</b>\n\n
|
||||
This will help with developing OpenSeizureDetector to increase the
|
||||
detection reliability and reduce the false alarm rate\n\n
|
||||
If you would like more information about the data sharing system and privacy policy, please see the
|
||||
Data Sharing page (https://www.openseizuredetector.org.uk/?page_id=1818)
|
||||
\n on the
|
||||
https://openseizuredetector.org.uk web site.
|
||||
|
||||
</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user