Browse Source

Added license to settings.

housekeeping/remove-warnings
Antoine POPINEAU 5 years ago
parent
commit
9d0ee7f1b8
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 9
      app/src/main/res/drawable/license.xml
  2. 3
      app/src/main/res/values-fr/strings.xml
  3. 3
      app/src/main/res/values/strings.xml
  4. 14
      app/src/main/res/xml/settings.xml

9
app/src/main/res/drawable/license.xml

@ -0,0 +1,9 @@ @@ -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>

3
app/src/main/res/values-fr/strings.xml

@ -46,6 +46,9 @@ @@ -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>

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

@ -46,6 +46,9 @@ @@ -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>

14
app/src/main/res/xml/settings.xml

@ -49,9 +49,19 @@ @@ -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 @@ @@ -68,7 +78,7 @@
<Preference
android:key="version"
android:title="Version" />
android:title="@string/settings_version_title" />
</PreferenceCategory>

Loading…
Cancel
Save