Skip to content

Commit aaf4aa3

Browse files
committed
add simple about screen
1 parent 859e06f commit aaf4aa3

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ android {
66
applicationId "org.hvdw.fythwonekey"
77
minSdkVersion 21
88
targetSdkVersion 27
9-
versionCode 3
10-
versionName "1.2"
9+
versionCode 4
10+
versionName "1.2.2"
1111
}
1212
buildTypes {
1313
release {

app/src/main/res/values/strings.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,11 @@
6969
<string name="accoff_syscall">Execute system call(s) to execute linux command/script.</string>
7070
<string name="accoff_syscall_summary">Separate multiple commands with a semicolon (;)</string>
7171

72+
<string name="about_info_screen">Information Screen</string>
73+
<string name="about">About</string>
74+
<string name="xda_discussion_title">XDA Discussion thread</string>
75+
<string name="xda_discussion_summary">Discuss or ask questions about this apk on XDA</string>
76+
<string name="github_title">Source code</string>
77+
<string name="github_summary">Explore the source code of FytHWOneKey on Github</string>
78+
7279
</resources>

app/src/main/res/xml/preferences.xml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
android:defaultValue="" />
220220
</PreferenceScreen>
221221

222-
<!-- Finally the "preferece screen" to start the lit apps listactivity -->
222+
<!-- Finally the "preference screen" to start the list apps listactivity -->
223223
<Preference
224224
android:key="listapps"
225225
android:title="@string/listapps_title"
@@ -230,4 +230,30 @@
230230
android:targetClass="org.hvdw.fythwonekey.ListInstalledApps" />
231231
</Preference>
232232

233+
<!-- About screen -->
234+
<PreferenceScreen
235+
android:title="@string/about_info_screen"
236+
android:key="about_info">
237+
<PreferenceCategory
238+
android:key="ABOUT"
239+
android:title="@string/about">
240+
<Preference
241+
android:key="xda_discussion"
242+
android:title="@string/xda_discussion_title"
243+
android:summary="@string/xda_discussion_summary">
244+
<intent
245+
android:action="android.intent.action.VIEW"
246+
android:data="https://forum.xda-developers.com/android-auto/android-head-units/fyt-units-rooted-app-to-modify-unit-t3912075" />
247+
</Preference>
248+
<Preference
249+
android:key="github"
250+
android:title="@string/github_title"
251+
android:summary="@string/github_summary">
252+
<intent
253+
android:action="android.intent.action.VIEW"
254+
android:data="https://github.com/hvdwolf/FytHWOnekey" />
255+
</Preference>
256+
</PreferenceCategory>
257+
</PreferenceScreen>
258+
233259
</PreferenceScreen>

0 commit comments

Comments
 (0)