From 2ead2c19a5935cbe8c8cd842278f0b48a77e3fee Mon Sep 17 00:00:00 2001 From: HeCodes2Much Date: Fri, 29 Nov 2024 15:44:09 +0000 Subject: [PATCH] Fix: Fixed crash on trying to get to settings. --- .../droidworksstudio/launcher/ui/home/HomeFragment.kt | 6 +++--- app/src/main/res/values/ids.xml | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 app/src/main/res/values/ids.xml diff --git a/app/src/main/java/com/github/droidworksstudio/launcher/ui/home/HomeFragment.kt b/app/src/main/java/com/github/droidworksstudio/launcher/ui/home/HomeFragment.kt index 4e72784b..2feb1dd6 100644 --- a/app/src/main/java/com/github/droidworksstudio/launcher/ui/home/HomeFragment.kt +++ b/app/src/main/java/com/github/droidworksstudio/launcher/ui/home/HomeFragment.kt @@ -528,7 +528,7 @@ class HomeFragment : Fragment(), val actionTypeNavOptions: NavOptions = appHelper.getActionType(Constants.Swipe.DoubleTap) findNavController().navigate( - R.id.action_HomeFragment_to_SettingsFragment, + R.id.SettingsFragment, null, actionTypeNavOptions ) @@ -540,12 +540,12 @@ class HomeFragment : Fragment(), }) if (preferenceHelper.settingsLock) { - fingerHelper.startBiometricSettingsAuth(R.id.action_HomeFragment_to_SettingsFragment) + fingerHelper.startBiometricSettingsAuth(R.id.SettingsFragment) } else { val actionTypeNavOptions: NavOptions = appHelper.getActionType(Constants.Swipe.DoubleTap) findNavController().navigate( - R.id.action_HomeFragment_to_SettingsFragment, + R.id.SettingsFragment, null, actionTypeNavOptions ) diff --git a/app/src/main/res/values/ids.xml b/app/src/main/res/values/ids.xml deleted file mode 100644 index 48072696..00000000 --- a/app/src/main/res/values/ids.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file