Fix: Fixed the appIconsSwitchCompat working with the appIconDotsSwitchCompat
Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
@@ -88,7 +88,7 @@ class PreferenceHelper @Inject constructor(@ApplicationContext context: Context)
|
||||
set(value) = prefs.edit().putBoolean(Constants.SHOW_APP_ICON, value).apply()
|
||||
|
||||
var showAppIconAsDots: Boolean
|
||||
get() = prefs.getBoolean(Constants.SHOW_APP_ICON_DOTS, true)
|
||||
get() = prefs.getBoolean(Constants.SHOW_APP_ICON_DOTS, false)
|
||||
set(value) = prefs.edit().putBoolean(Constants.SHOW_APP_ICON_DOTS, value).apply()
|
||||
|
||||
var locationDenied: Boolean
|
||||
|
||||
@@ -141,6 +141,12 @@ class SettingsFragment : Fragment(),
|
||||
binding.automaticKeyboardSwitchCompat.isChecked = preferenceHelper.automaticKeyboard
|
||||
binding.automaticOpenAppSwitchCompat.isChecked = preferenceHelper.automaticOpenApp
|
||||
binding.lockSettingsSwitchCompat.isChecked = preferenceHelper.settingsLock
|
||||
|
||||
if (!binding.appIconsSwitchCompat.isChecked) {
|
||||
// Disable and gray out the other setting if appIconsSwitchCompat is checked
|
||||
binding.appIconDotsSwitchCompat.isEnabled = binding.appIconsSwitchCompat.isChecked
|
||||
binding.appIconDotsSwitchCompat.isChecked = false
|
||||
}
|
||||
}
|
||||
|
||||
private fun observeClickListener() {
|
||||
|
||||
Reference in New Issue
Block a user