summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-05-14 00:58:43 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:01 +0200
commit070d2508585631152ee59e4becf53f09d6141742 (patch)
tree96f851ffbb78e4a4b5549aa566dd4b463ce11c86 /src/android
parentandroid: Expose custom RTC setting (diff)
downloadyuzu-070d2508585631152ee59e4becf53f09d6141742.tar
yuzu-070d2508585631152ee59e4becf53f09d6141742.tar.gz
yuzu-070d2508585631152ee59e4becf53f09d6141742.tar.bz2
yuzu-070d2508585631152ee59e4becf53f09d6141742.tar.lz
yuzu-070d2508585631152ee59e4becf53f09d6141742.tar.xz
yuzu-070d2508585631152ee59e4becf53f09d6141742.tar.zst
yuzu-070d2508585631152ee59e4becf53f09d6141742.zip
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
index f8f275b41..8e3422922 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
@@ -35,6 +35,8 @@ import org.yuzu.yuzu_emu.activities.EmulationActivity
import org.yuzu.yuzu_emu.databinding.ActivityMainBinding
import org.yuzu.yuzu_emu.databinding.DialogProgressBarBinding
import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
import org.yuzu.yuzu_emu.model.GamesViewModel
import org.yuzu.yuzu_emu.model.HomeViewModel
import org.yuzu.yuzu_emu.utils.*
@@ -95,6 +97,11 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
when (it.itemId) {
R.id.gamesFragment -> gamesViewModel.setShouldScrollToTop(true)
R.id.searchFragment -> gamesViewModel.setSearchFocused(true)
+ R.id.homeSettingsFragment -> SettingsActivity.launch(
+ this,
+ SettingsFile.FILE_NAME_CONFIG,
+ ""
+ )
}
}
@@ -153,10 +160,12 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
interpolator = PathInterpolator(0.05f, 0.7f, 0.1f, 1f)
if (smallLayout) {
- binding.navigationView.translationY = binding.navigationView.height.toFloat() * 2
+ binding.navigationView.translationY =
+ binding.navigationView.height.toFloat() * 2
translationY(0f)
} else {
- binding.navigationView.translationX = binding.navigationView.width.toFloat() * -2
+ binding.navigationView.translationX =
+ binding.navigationView.width.toFloat() * -2
translationX(0f)
}
} else {