mirror of
https://github.com/xdsopl/robot36.git
synced 2026-04-05 06:15:12 +00:00
added privacy policy
This commit is contained in:
parent
cdf12d2c09
commit
2718a51d41
7 changed files with 77 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -79,4 +79,7 @@
|
|||
android:title="@string/disable" />
|
||||
</menu>
|
||||
</item>
|
||||
<item
|
||||
android:id="@+id/action_privacy_policy"
|
||||
android:title="@string/privacy_policy" />
|
||||
</menu>
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="dark">#FF010101</color>
|
||||
<color name="gray">#FFB4B4B4</color>
|
||||
<color name="thin">#FF2F2F2F</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="tint">#FFFFFFFF</color>
|
||||
</resources>
|
||||
|
|
@ -1,7 +1,28 @@
|
|||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<resources>
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.Robot36" parent="Theme.Material3.DayNight">
|
||||
<!-- Customize your dark theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/black</item>
|
||||
<item name="colorPrimaryVariant">@color/gray</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/gray</item>
|
||||
<item name="colorSecondaryVariant">@color/black</item>
|
||||
<item name="colorOnSecondary">@color/white</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor">@color/black</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="android:navigationBarColor">@color/dark</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.AlertDialog" parent="Theme.Material3.DayNight.Dialog.Alert">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/white</item>
|
||||
<item name="colorPrimaryVariant">@color/gray</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/gray</item>
|
||||
<item name="colorSecondaryVariant">@color/black</item>
|
||||
<item name="colorOnSecondary">@color/white</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="dark">#FF010101</color>
|
||||
<color name="gray">#FF696969</color>
|
||||
<color name="thin">#FFE0E0E0</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="tint">#FF000000</color>
|
||||
</resources>
|
||||
|
|
@ -28,4 +28,11 @@
|
|||
<string name="night_mode">Night Mode</string>
|
||||
<string name="enable">Enable</string>
|
||||
<string name="disable">Disable</string>
|
||||
<string name="close">Close</string>
|
||||
<string name="privacy_policy">Privacy Policy</string>
|
||||
<string name="privacy_policy_text">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.</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,29 @@
|
|||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<resources>
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.Robot36" parent="Theme.Material3.DayNight">
|
||||
<!-- Customize your light theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/white</item>
|
||||
<item name="colorPrimaryVariant">@color/gray</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/gray</item>
|
||||
<item name="colorSecondaryVariant">@color/white</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor">@color/black</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="android:navigationBarColor">@color/dark</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.AlertDialog" parent="Theme.Material3.DayNight.Dialog.Alert">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/black</item>
|
||||
<item name="colorPrimaryVariant">@color/gray</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/gray</item>
|
||||
<item name="colorSecondaryVariant">@color/white</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Robot36" parent="Base.Theme.Robot36" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue