Release v0.2.3

This commit is contained in:
len
2016-07-24 15:41:58 +02:00
parent 8f83f497d5
commit 74e3d387eb
6 changed files with 32 additions and 8 deletions

View File

@@ -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)

View File

@@ -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()