Skip to content

Commit

Permalink
Go directly to language settings, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Dec 5, 2024
1 parent 9d029c1 commit 93191a6
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ class LocaleHelper @Inject constructor(
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
Intent().also { intent ->
intent.setAction(Settings.ACTION_APP_LOCALE_SETTINGS)
intent.addCategory(Intent.CATEGORY_DEFAULT)
intent.setData(Uri.parse("package:" + context.packageName))
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY)
intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)
context.startActivity(intent)
}
} else {
Expand Down

0 comments on commit 93191a6

Please sign in to comment.