Merge "Split out launcherProtos from sysui_shared.jar" into ub-launcher3-master
This commit is contained in:
commit
8ac8d73530
16
Android.mk
16
Android.mk
|
@ -37,6 +37,14 @@ LOCAL_UNINSTALLABLE_MODULE := true
|
|||
LOCAL_SDK_VERSION := current
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := libLauncherProtos
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
|
||||
LOCAL_SRC_FILES := libs/launcher_protos.jar
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
LOCAL_SDK_VERSION := current
|
||||
include $(BUILD_PREBUILT)
|
||||
#
|
||||
# Build rule for plugin lib (needed to write a plugin).
|
||||
#
|
||||
|
@ -162,10 +170,10 @@ LOCAL_AAPT2_ONLY := true
|
|||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
ifneq (,$(wildcard frameworks/base))
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
else
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
|
||||
LOCAL_SDK_VERSION := system_current
|
||||
LOCAL_MIN_SDK_VERSION := 26
|
||||
endif
|
||||
|
@ -226,10 +234,10 @@ LOCAL_USE_AAPT2 := true
|
|||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
ifneq (,$(wildcard frameworks/base))
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
else
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
|
||||
LOCAL_SDK_VERSION := system_current
|
||||
LOCAL_MIN_SDK_VERSION := 26
|
||||
endif
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
These jar are compiled in the frameworks/base of the platform tree.
|
||||
|
||||
launcher_protos.jar is defined as launcherprotosnano in the following file:
|
||||
frameworks/base/core/protos/android/stats/launcher/Android.bp
|
||||
|
||||
plugin_core.jar is defined as PluginCoreLib in the following file:
|
||||
frameworks/base/packages/SystemUI/plugin/Android.bp
|
||||
|
Binary file not shown.
Binary file not shown.
|
@ -1611,7 +1611,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
|||
} else if (mStateManager.getState() == LauncherState.OVERVIEW) {
|
||||
return StatsLogUtils.LAUNCHER_STATE_OVERVIEW;
|
||||
}
|
||||
return StatsLogUtils.LAUNCHER_STATE_BACKGROUND;
|
||||
return StatsLogUtils.LAUNCHER_STATE_HOME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue