diff --git a/app/src/main/java/xdsopl/robot36/MainActivity.java b/app/src/main/java/xdsopl/robot36/MainActivity.java
index 19ec2ce..3b567a8 100644
--- a/app/src/main/java/xdsopl/robot36/MainActivity.java
+++ b/app/src/main/java/xdsopl/robot36/MainActivity.java
@@ -21,6 +21,7 @@ import android.widget.ImageView;
import androidx.activity.EdgeToEdge;
import androidx.annotation.NonNull;
+import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.app.ActivityCompat;
@@ -367,9 +368,21 @@ public class MainActivity extends AppCompatActivity {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
return true;
}
+ if (id == R.id.action_privacy_policy) {
+ showTextPage(getString(R.string.privacy_policy), getString(R.string.privacy_policy_text));
+ return true;
+ }
return super.onOptionsItemSelected(item);
}
+ private void showTextPage(String title, String message) {
+ AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.Theme_AlertDialog);
+ builder.setNeutralButton(R.string.close, null);
+ builder.setTitle(title);
+ builder.setMessage(message);
+ builder.show();
+ }
+
@Override
protected void onResume() {
startListening();
diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml
index fd5b4ad..263fc09 100644
--- a/app/src/main/res/menu/menu_main.xml
+++ b/app/src/main/res/menu/menu_main.xml
@@ -79,4 +79,7 @@
android:title="@string/disable" />
+
\ No newline at end of file
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
index 9e8f90f..5396b94 100644
--- a/app/src/main/res/values-night/colors.xml
+++ b/app/src/main/res/values-night/colors.xml
@@ -1,6 +1,9 @@
#FF000000
+ #FF010101
+ #FFB4B4B4
+ #FF2F2F2F
#FFFFFFFF
#FFFFFFFF
\ No newline at end of file
diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml
index 473cbd1..dedc5cd 100644
--- a/app/src/main/res/values-night/themes.xml
+++ b/app/src/main/res/values-night/themes.xml
@@ -1,7 +1,28 @@
-
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 94a849e..e9d42dc 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -1,6 +1,9 @@
#FF000000
+ #FF010101
+ #FF696969
+ #FFE0E0E0
#FFFFFFFF
#FF000000
\ 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 634d803..be8ac37 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -28,4 +28,11 @@
Night Mode
Enable
Disable
+ Close
+ Privacy Policy
+ To be able to decode SSTV encoded images the app needs access to the microphone.
+Having access to the microphone is considered to be a sensitive permission and you have the right to know what the app does with that access:
+The data recorded from the microphone is only used to fed the SSTV decoder, VU meter and the spectrum analyzer for visualization of its frequency content.
+The app uses a very small temporary buffer in volatile memory and constantly overwrites this buffer with new data from the microphone.
+The resulting images from the SSTV decoder is the only data that gets stored in persistent storage on your Android device.
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index fc76dac..6315a79 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -1,8 +1,29 @@
-
+
+
+