Home

thomasboom / yam-launcher

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: handle SecurityException in LauncherApps and prevent IndexOutOfBoundsException

3 months ago

e5cf081
Authored
Thomas Boom6/6/2026, 1:33:48 PM
- Add Intent fallback when LauncherApps.startMainActivity or startAppDetailsActivity throws SecurityException (e.g., when app is not the default launcher)
- Add explicit position < 0 bounds checking in AppMenuAdapter click/long-click listeners and onBindViewHolder to prevent IndexOutOfBoundsException

Parent07d8682

3 files changed
  • app/src/main/java/eu/ottop/yamlauncher/AppMenuAdapter.kt+3−3
  • app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt+46−6
  • app/src/main/java/eu/ottop/yamlauncher/utils/AppUtils.kt+16−0