OSDN Git Service

Add variable to control whether use Taskbar to replace default Launchers
authorutzcoz <utzcoz@outlook.com>
Wed, 11 Mar 2020 07:57:20 +0000 (15:57 +0800)
committerutzcoz <utzcoz@outlook.com>
Wed, 11 Mar 2020 08:02:10 +0000 (16:02 +0800)
User can define EANBLE_TASKBAR_REPLACE := true in its device makefile to
use Taskbar to replace default Launchers. If user doesn't assign true to
this value, or define this variable, the system will build Taskbar to
system/priv-app only, and other Launchers will exist too.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Android.mk

index 0b3fcbd..363637f 100644 (file)
@@ -32,7 +32,9 @@ LOCAL_SDK_VERSION := current
 
 LOCAL_PRIVILEGED_MODULE := true
 
+ifeq ($(EANBLE_TASKBAR_REPLACE),true)
 LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
+endif
 
 LOCAL_AAPT_FLAGS := \
         --auto-add-overlay \