From bf33517be45d1f526f6fc75a7a18a8c3d56adb9b Mon Sep 17 00:00:00 2001 From: Olga Miller Date: Sat, 3 Dec 2022 13:11:40 +0100 Subject: [PATCH] Added "About SSTV Encoder" menu item (with version, copyright, open source code link and DISCLAIMER) --- app/src/main/java/om/sstvencoder/MainActivity.java | 3 +++ app/src/main/res/menu/menu_main.xml | 5 +++++ app/src/main/res/values/strings.xml | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/app/src/main/java/om/sstvencoder/MainActivity.java b/app/src/main/java/om/sstvencoder/MainActivity.java index 4a2342c..88c7cd6 100644 --- a/app/src/main/java/om/sstvencoder/MainActivity.java +++ b/app/src/main/java/om/sstvencoder/MainActivity.java @@ -345,6 +345,9 @@ public class MainActivity extends AppCompatActivity { else if (id == R.id.action_privacy_policy) { showTextPage(getString(R.string.action_privacy_policy), getString(R.string.action_privacy_policy_text)); } + else if (id == R.id.action_about) { + showTextPage(getString(R.string.action_about), getString(R.string.action_about_text, BuildConfig.VERSION_NAME)); + } else if (id != R.id.action_modes) { String className = item.getIntent().getStringExtra(CLASS_NAME); setMode(className); diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index 2ab2e11..0116e25 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -45,4 +45,9 @@ android:title="@string/action_privacy_policy" app:showAsAction="never"> + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b1d7863..e91b8c6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -33,6 +33,13 @@ \n\nThe modified image with text overlays will be encoded to audio using the selected mode. The selected mode will be stored in the app settings locally. \n\nThe resulting audio can either be played back by pressing the play button or saved locally on the device by pressing the save button. + About SSTV Encoder + + SSTV Encoder %1$s\nCopyright 2017 Olga Miller + \n\nSSTV Encoder sends images via Slow Scan Television (SSTV). + \n\nFor more info, see open source code: \nhttps://github.com/olgamiller/SSTVEncoder2 + \n\nDISCLAIMER:\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + Image loading error Image orientation error Unsupported content.