Browse Source

Added link to repository in settings.

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

9
app/src/main/res/drawable/repository.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="M9.4,16.6L4.8,12l4.6,-4.6L8,6l-6,6 6,6 1.4,-1.4zM14.6,16.6l4.6,-4.6 -4.6,-4.6L16,6l6,6 -6,6 -1.4,-1.4z"/>
</vector>

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

@ -43,6 +43,9 @@ @@ -43,6 +43,9 @@
<string name="settings_experiments_description">Utiliser à vos risques et périls, peut potentiellement ralentir ou crasher l\'application</string>
<string name="settings_experiments_restart_title">Relancement requis</string>
<string name="settings_experiments_restart_content">Veuillez tuer puis relancer l\'application afin que ce changement soit pris en compte</string>
<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_logout">Déconnexion</string>
<string name="artists">Artistes</string>

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

@ -43,6 +43,9 @@ @@ -43,6 +43,9 @@
<string name="settings_experiments_description">Use at your own risks, may freeze or crash the app</string>
<string name="settings_experiments_restart_title">Restart required</string>
<string name="settings_experiments_restart_content">Please kill and restart the app in order for this change to take effect</string>
<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_logout">Sign out</string>
<string name="artists">Artists</string>

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

@ -34,16 +34,11 @@ @@ -34,16 +34,11 @@
android:key="night_mode"
android:title="@string/settings_night_mode" />
<Preference
android:icon="@drawable/favorite"
android:key="oss_licences"
android:title="@string/title_oss_licences" />
<CheckBoxPreference
android:icon="@drawable/experimental"
android:key="experiments"
android:title="@string/settings_experiments"
android:summary="@string/settings_experiments_description"/>
android:summary="@string/settings_experiments_description"
android:title="@string/settings_experiments" />
<Preference
android:icon="@drawable/logout"
@ -52,4 +47,25 @@ @@ -52,4 +47,25 @@
</PreferenceCategory>
<PreferenceCategory android:title="@string/settings_information">
<Preference
android:icon="@drawable/repository"
android:key="repository"
android:summary="@string/settings_information_repository_description"
android:title="@string/settings_information_repository_title">
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/apognu/otter" />
</Preference>
<Preference
android:icon="@drawable/favorite"
android:key="oss_licences"
android:title="@string/title_oss_licences" />
</PreferenceCategory>
</androidx.preference.PreferenceScreen>
Loading…
Cancel
Save