Skip to content

Commit a407a6f

Browse files
Fix: Hide Private Apps button when mLauncher is not default
The "Private Apps" button in the app drawer will now be hidden if mLauncher is not set as the default launcher. This change modifies the visibility condition in `AppDrawerFragment.kt` to include a check using `ismlauncherDefault(requireContext())`.
1 parent 9318ffa commit a407a6f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
44

5+
## [Coming Soon](https://github.com/DroidWorksStudio/mLauncher/tree/main) - TBD
6+
7+
### Bug Fixes:
8+
9+
* Hide Private Apps button when mLauncher is not default ([1c7a5ae7](https://github.com/DroidWorksStudio/mLauncher/commit/1c7a5ae7))
10+
11+
### Refactors:
12+
13+
* Implement caching and optimize data loading in MainViewModel ([9318ffa0](https://github.com/DroidWorksStudio/mLauncher/commit/9318ffa0))
14+
515
## [1.11.1.3](https://github.com/DroidWorksStudio/mLauncher/tree/1.11.1.3) - (21, September 2025)
616

717
### Bug Fixes:

app/src/main/java/com/github/droidworksstudio/mlauncher/ui/AppDrawerFragment.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import com.github.droidworksstudio.mlauncher.databinding.FragmentAppDrawerBindin
5454
import com.github.droidworksstudio.mlauncher.helper.emptyString
5555
import com.github.droidworksstudio.mlauncher.helper.getHexForOpacity
5656
import com.github.droidworksstudio.mlauncher.helper.hasContactsPermission
57+
import com.github.droidworksstudio.mlauncher.helper.ismlauncherDefault
5758
import com.github.droidworksstudio.mlauncher.helper.openAppInfo
5859
import com.github.droidworksstudio.mlauncher.helper.utils.PrivateSpaceManager
5960
import com.github.droidworksstudio.mlauncher.ui.adapter.AppDrawerAdapter
@@ -416,7 +417,7 @@ class AppDrawerFragment : BaseFragment() {
416417
}
417418

418419
binding.privateApps.apply {
419-
isVisible = ((prefs.getProfileCounter("PRIVATE") > 0) && !PrivateSpaceManager(requireContext()).isPrivateSpaceLocked() && profileType != "PRIVATE")
420+
isVisible = ((prefs.getProfileCounter("PRIVATE") > 0) && profileType != "PRIVATE" && !PrivateSpaceManager(requireContext()).isPrivateSpaceLocked() && ismlauncherDefault(requireContext()))
420421
setOnClickListener {
421422
findNavController().navigate(
422423
R.id.action_appListFragment_to_appListFragment,

0 commit comments

Comments
 (0)