From 33e65f669ca40a5c1f6f14655e697d91e4dbd519 Mon Sep 17 00:00:00 2001 From: Cyb3rKo Date: Wed, 1 Jul 2020 22:34:38 +0200 Subject: [PATCH] implemented feature to switch between 3 orientation modes (#12) --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 20 +---- .../{Credits.java => About.java} | 12 ++- .../logviewer_for_openHAB/IconCredits.java | 5 ++ .../logviewer_for_openHAB/MainActivity.java | 10 +-- .../logviewer_for_openHAB/MainFragment.java | 75 +++++++++++++----- .../logviewer_for_openHAB/PrivacyPolicy.java | 5 ++ .../logviewer_for_openHAB/TermsOfUse.java | 5 ++ .../WebViewFragment.java | 3 + .../icon_landscape_orientation.webp | Bin 0 -> 512 bytes .../icon_portrait_orientation.webp | Bin 0 -> 562 bytes app/src/main/res/values/strings.xml | 35 ++++---- app/src/main/res/values/styles.xml | 2 +- 13 files changed, 110 insertions(+), 64 deletions(-) rename app/src/main/java/com/thegreek/niko/logviewer_for_openHAB/{Credits.java => About.java} (89%) create mode 100644 app/src/main/res/drawable-v24/icon_landscape_orientation.webp create mode 100644 app/src/main/res/drawable-v24/icon_portrait_orientation.webp diff --git a/app/build.gradle b/app/build.gradle index ba065f5..973172b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,7 +31,7 @@ dependencies { implementation 'com.amitshekhar.android:android-networking:1.0.2' implementation 'com.getkeepsafe.taptargetview:taptargetview:1.13.0' implementation 'com.github.GrenderG:Toasty:1.4.2' - implementation 'com.github.medyo:android-about-page:1.2.6' + implementation 'com.github.medyo:android-about-page:1.3' implementation 'com.google.android.material:material:1.1.0' implementation 'com.google.firebase:firebase-analytics:17.4.3' implementation 'com.google.firebase:firebase-core:17.4.3' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1f8b510..2ba7824 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -14,28 +14,16 @@ android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true"> - + - - + - - - - - - + + G;iyfIYULh*vcoH zCUq#}g&&#`l4l=RKX&A;0O(y&mtbc z-3v5uT0t2aH+5~2(a3QD#`E%@eG@f5M&>Jaz~DX_H+L9%ETEC;0|5SL-l(2;-~p32yPSR zcigu-ykHJRv`u7vyW1a4M4*n7Ie%il-^o|~)SwqZ{(7vs^F7@AU43+EUMm;ua1#K9 CY6tcJ literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-v24/icon_portrait_orientation.webp b/app/src/main/res/drawable-v24/icon_portrait_orientation.webp new file mode 100644 index 0000000000000000000000000000000000000000..00ce21704a50beb116937362f038f9279b05b72c GIT binary patch literal 562 zcmV-20?qwWNk&F00ssJ4MM6+kP&iB;0ssIn%)nm|fY>&YBZ>K^y?fL5uIhb9NP;BW zw5@)&ZQHhO+s4SYZQJh+zir#LZR2810G#3%Y|0^bd__THd+(|}I@#lZr_!_OC(7Jw zJtSvjjANkOeNl#Qz{wkwy^EBO3G>FMv(dqddUxXAus9U{oXqaZ^no@eWm?(VdBl+#zVZ61|<6^>xA>vQ{;* z2TdVt_7i8iaCZH-{#*a8|JHx&zxCgWgU-Z`@NoD(&=ejxJ`j|im@~KVrw2ApFjzr+ zBpiR_k8H>fa4Pfn#zltE0041bDh)|zgcC|QUY6l!C!Bf>9Gt~K2>D=$U<0`IVxfBv zI251>9r{c$KGql~$nN;;Lg!r5^LC&#JPK%NGdy+^XToDYad!Q;{#*a8|8^R5C%U_^ z5gyZthVVpoLB9(gUl?M$VD?>xM>V#5TjAOTi;3az*iUTf!rArT`mYwhC-lRTK5@vy ziA`crQFC=-*@+4A%h`|CehpG@HC%16#fENYU$IMAXsX@XD0|sbs-Q{|qX?G(94tZ| z0Iwc=BLx6<*Ps>vfU*B2ctP+2ay#&w4cr^AKs-FeZ7Dwtg>b4EGd!Pp!#OusqqChB zOmRx_I5sCZ!!vQP*5;~TarxqiBI@vh#OSkQ|G^66D?+S>Q=w!iQ)d5a+0rBcQ}D46 A;Q#;t literal 0 HcmV?d00001 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 170adf4..9a659bd 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,5 +1,5 @@ - LogViewer for openHAB + LogViewer for openHAB Fill out both Connecting… @@ -28,20 +28,20 @@ smartphone. About - \"Eye Open icon\" made by Dave Gandy from flaticon.com - \"Files icon\" made by Smartline from flaticon.com - \"Lock icon\" made by Those Icons from flaticon.com - \"Font icon\" made by Those Icons from flaticon.com - \"Left Arrow icon\" made by Lyolya from flaticon.com - \"Lock icon\" (2) made by Those Icons from flaticon.com - \"Orientation icon\" made by Freepik from flaticon.com - \"Book icon\" made by Freepik from flaticon.com - \"Question icon\" made by Freepik from flaticon.com - https://www.flaticon.com/authors/freepik - https://www.flaticon.com/authors/those-icons - https://www.flaticon.com/authors/lyolya - https://www.flaticon.com/authors/smartline - https://www.flaticon.com/authors/dave-gandy + \"Eye Open icon\" made by Dave Gandy from flaticon.com + \"Files icon\" made by Smartline from flaticon.com + \"Lock icon\" made by Those Icons from flaticon.com + \"Font icon\" made by Those Icons from flaticon.com + \"Left Arrow icon\" made by Lyolya from flaticon.com + \"Lock icon\" (2) made by Those Icons from flaticon.com + \"Orientation icon\" made by Freepik from flaticon.com + \"Book icon\" made by Freepik from flaticon.com + \"Question icon\" made by Freepik from flaticon.com + https://www.flaticon.com/authors/freepik + https://www.flaticon.com/authors/those-icons + https://www.flaticon.com/authors/lyolya + https://www.flaticon.com/authors/smartline + https://www.flaticon.com/authors/dave-gandy Hostname / IP address (e.g. 192.168.178.10) @@ -67,7 +67,7 @@ Send me a mail… - + Privacy Policy I built the LogViewer for openHAB app as a Free app. This SERVICE is provided by me at no cost and is intended for use as is. \n\nThis page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use this Service. @@ -114,8 +114,7 @@ This privacy policy page was created at privacypolicytemplate.net and modified/generated by App Privacy Policy Generator (app-privacy-policy-generator.firebaseapp.com) and me. - // Terms of Use - + Terms of Use By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You\'re not allowed to copy, or modify the app, any part of the app. You\'re not allowed to attempt to extract the source code of the app or make derivative versions. diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index bdfe33e..74b1ae5 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,7 +1,7 @@ -