Launcher3/src/com/android/launcher3/1. AppsCustomizePagedView. java public static boolean DISABLE_ALL_APPS = true; // mtk modify 2. AppsCustomizePagedView. java
Protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec ){
Int width = MeasureSpec. getSize (widthMeasureSpec );
Int height = MeasureSpec. getSize (heightMeasureSpec );
LauncherLog. d (TAG, onMeasure mIsInEditMode = + mIsInEditMode + widthMeasureSpec ++ heightMeasureSpec
++ Width ++ height );
If (! IsDataReady ()){
LauncherLog. d (TAG, onMeasure DISABLE_ALL_APPS is + DISABLE_ALL_APPS
+! MApps. isEmpty () is +! MApps. isEmpty ()
+! MWidgets. isEmpty () +! MWidgets. isEmpty ());
If (DISABLE_ALL_APPS | (! MApps. isEmpty () & mAppsHasSet ))&&! MWidgets. isEmpty () {// mtk modify
SetDataIsReady ();
SetMeasuredDimension (width, height );
OnDataReady (width, height );
}
} Super. onMeasure (widthMeasureSpec, heightMeasureSpec );
} 3. Launcher. java private void showAppsCustomizeHelper (final boolean animated, final boolean springLoaded,
Final AppsCustomizePagedView. ContentType contentType ){
......
// Shrink workspaces away if going to AppsCustomize from workspace
Animator workspaceAnim =
MWorkspace. getChangeStateAnimation (Workspace. State. SMALL, animated );
// If (! AppsCustomizePagedView. DISABLE_ALL_APPS) {// mtk modify
// Set the content type for the all apps space
MAppsCustomizeTabHost. setContentTypeImmediate (contentType );
/// Mtk modify
......
}
4. default_workspace.xml file (many paths in this file are available. Make sure that the file is modified to the correct file, for example, mediatek/operator/). The hotseat icon is configured in this file, screen is not configured as 2 by default. This is the original allapp button. After customization, screen2 needs to be configured instead of screen 4. Therefore, modify the screen id of the four hotseat icons, from 0 to 3.