Skip to content

Commit

Permalink
Merge pull request #315 from zobnin/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva authored Jun 30, 2024
2 parents 88fe89a + 540e455 commit ce19f63
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/values/supported_launchers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<item>action</item>
<item>adw</item>
<item>adwex</item>
<item>aio</item>
<item>apex</item>
<item>atom</item>
<item>go</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ enum class Launcher(
),
ADW("adw", "ADW Launcher", arrayOf("org.adw.launcher"), R.drawable.ic_adw),
ADW_EX("adwex", "ADW Ex Launcher", arrayOf("org.adwfreak.launcher"), R.drawable.ic_adw_ex),
AIO("aio", "AIO Launcher", arrayOf("ru.execbit.aiolauncher"), R.drawable.ic_aio),
APEX("apex", "Apex Launcher", arrayOf("com.anddoes.launcher"), R.drawable.ic_apex),
GO("go", "Go Launcher", arrayOf("com.gau.go.launcherex"), R.drawable.ic_go),
GOOGLE_NOW(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ fun Context.executeLauncherIntent(launcher: Launcher?) {
Launcher.ACTION -> executeActionLauncherIntent()
Launcher.ADW -> executeAdwLauncherIntent()
Launcher.ADW_EX -> executeAdwEXLauncherIntent()
Launcher.AIO -> executeAioLauncherIntent()
Launcher.APEX -> executeApexLauncherIntent()
Launcher.GO -> executeGoLauncherIntent()
Launcher.HOLO -> executeHoloLauncherIntent()
Expand Down Expand Up @@ -135,6 +136,14 @@ private fun Context.executeAdwEXLauncherIntent() {
}
}

private fun Context.executeAioLauncherIntent() {
attemptApply(Launcher.AIO) {
Intent("ru.execbit.aiolauncher.APPLY_ICONS", null).apply {
putExtra("packageName", packageName)
}
}
}

private fun Context.executeApexLauncherIntent() {
attemptApply(Launcher.APEX) {
Intent("com.anddoes.launcher.SET_THEME").apply {
Expand Down
Binary file added library/src/main/res/drawable-nodpi/ic_aio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions library/src/main/res/values/supported_launchers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<item>action</item>
<item>adw</item>
<item>adwex</item>
<item>aio</item>
<item>apex</item>
<item>atom</item>
<item>go</item>
Expand Down

0 comments on commit ce19f63

Please sign in to comment.