Skip to content

Commit

Permalink
Support android 13's per-app language selection, fixes #603 (#609)
Browse files Browse the repository at this point in the history
* Support android 13's per-all language selection

* Fix typo
  • Loading branch information
twizmwazin authored Jun 13, 2023
1 parent d12611f commit ff0d3b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />

<application
Expand All @@ -15,7 +17,10 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.Jerboa"
tools:targetApi="31">
android:localeConfig="@xml/locales_config"
tools:targetApi="33">



<activity
android:name=".MainActivity"
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/xml/locales_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en"/>
<locale android:name="de"/>
<locale android:name="it"/>
<locale android:name="ko"/>
<locale android:name="nl"/>
<locale android:name="pt-BR"/>
<locale android:name="se"/>
</locale-config>

0 comments on commit ff0d3b4

Please sign in to comment.