mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-29 21:37:56 +01:00
Release v0.2.3
This commit is contained in:
@@ -106,7 +106,8 @@ class MainActivity : BaseActivity() {
|
||||
.addNextIntent(Intent(this, MainActivity::class.java))
|
||||
.startActivities()
|
||||
} else if (resultCode and SettingsActivity.FLAG_THEME_CHANGED != 0) {
|
||||
recreate()
|
||||
// Delay activity recreation to avoid fragment leaks.
|
||||
nav_view.post { recreate() }
|
||||
}
|
||||
} else {
|
||||
super.onActivityResult(requestCode, resultCode, data)
|
||||
|
||||
@@ -41,7 +41,7 @@ class SettingsSourcesFragment : SettingsFragment() {
|
||||
override fun onViewCreated(view: View, savedState: Bundle?) {
|
||||
super.onViewCreated(view, savedState)
|
||||
|
||||
val langs = getLanguages()
|
||||
val langs = getLanguages().sortedBy { it.lang }
|
||||
|
||||
val entryKeys = langs.map { it.code }
|
||||
languagesPref.entries = langs.map { it.lang }.toTypedArray()
|
||||
|
||||
Reference in New Issue
Block a user