Added license to settings.

This commit is contained in:
Antoine POPINEAU 2020-05-29 01:42:03 +02:00
parent d9b7ed5b3f
commit 9d0ee7f1b8
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
4 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M16,11c1.66,0 2.99,-1.34 2.99,-3S17.66,5 16,5c-1.66,0 -3,1.34 -3,3s1.34,3 3,3zM8,11c1.66,0 2.99,-1.34 2.99,-3S9.66,5 8,5C6.34,5 5,6.34 5,8s1.34,3 3,3zM8,13c-2.33,0 -7,1.17 -7,3.5L1,19h14v-2.5c0,-2.33 -4.67,-3.5 -7,-3.5zM16,13c-0.29,0 -0.62,0.02 -0.97,0.05 1.16,0.84 1.97,1.97 1.97,3.45L17,19h6v-2.5c0,-2.33 -4.67,-3.5 -7,-3.5z"/>
</vector>

View File

@ -46,6 +46,9 @@
<string name="settings_information">Information</string>
<string name="settings_information_repository_title">Dépôt</string>
<string name="settings_information_repository_description">Otter par Antoine POPINEAU (apognu)</string>
<string name="settings_version_title">Version</string>
<string name="settings_information_license_title">Licence</string>
<string name="settings_information_license_description">MIT license</string>
<string name="settings_logout">Déconnexion</string>
<string name="artists">Artistes</string>

View File

@ -46,6 +46,9 @@
<string name="settings_information">Information</string>
<string name="settings_information_repository_title">Repository</string>
<string name="settings_information_repository_description">Otter by Antoine POPINEAU (apognu)</string>
<string name="settings_version_title">Version</string>
<string name="settings_information_license_title">License</string>
<string name="settings_information_license_description">MIT license</string>
<string name="settings_logout">Sign out</string>
<string name="artists">Artists</string>

View File

@ -49,9 +49,19 @@
<PreferenceCategory android:title="@string/settings_information">
<Preference
android:icon="@drawable/license"
android:summary="@string/settings_information_license_description"
android:title="@string/settings_information_license_title">
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/apognu/otter/blob/master/LICENSE" />
</Preference>
<Preference
android:icon="@drawable/repository"
android:key="repository"
android:summary="@string/settings_information_repository_description"
android:title="@string/settings_information_repository_title">
@ -68,7 +78,7 @@
<Preference
android:key="version"
android:title="Version" />
android:title="@string/settings_version_title" />
</PreferenceCategory>