[automerger] Some launcher3 fixes so that it compiles with different configurations am: d0f43ceba7
am: 9e40ef9894
Change-Id: Ie3eed75fab341dfe274a566c71d6b6fdbab70854
This commit is contained in:
commit
a7d219f798
|
@ -112,6 +112,11 @@
|
||||||
public <init>(...);
|
public <init>(...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# UserEventDispatcherExtension
|
||||||
|
-keep class com.android.quickstep.logging.UserEventDispatcherExtension {
|
||||||
|
public <init>(...);
|
||||||
|
}
|
||||||
|
|
||||||
-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
|
-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
|
||||||
*;
|
*;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,5 +18,5 @@
|
||||||
|
|
||||||
<string name="overview_callbacks_class" translatable="false"></string>
|
<string name="overview_callbacks_class" translatable="false"></string>
|
||||||
|
|
||||||
<string name="user_event_dispatcher_class" translatable="false">com.google.quickstep.logging.UserEventDispatcherExtension</string>
|
<string name="user_event_dispatcher_class" translatable="false">com.android.quickstep.logging.UserEventDispatcherExtension</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -20,6 +20,7 @@ import android.content.Context;
|
||||||
import com.android.launcher3.MainProcessInitializer;
|
import com.android.launcher3.MainProcessInitializer;
|
||||||
import com.android.systemui.shared.system.ThreadedRendererCompat;
|
import com.android.systemui.shared.system.ThreadedRendererCompat;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public class QuickstepProcessInitializer extends MainProcessInitializer {
|
public class QuickstepProcessInitializer extends MainProcessInitializer {
|
||||||
|
|
||||||
public QuickstepProcessInitializer(Context context) { }
|
public QuickstepProcessInitializer(Context context) { }
|
||||||
|
|
|
@ -15,10 +15,9 @@
|
||||||
*/
|
*/
|
||||||
package com.android.quickstep.logging;
|
package com.android.quickstep.logging;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import static com.android.launcher3.logging.LoggerUtils.newAction;
|
|
||||||
import static com.android.launcher3.logging.LoggerUtils.newContainerTarget;
|
|
||||||
import static com.android.launcher3.logging.LoggerUtils.newLauncherEvent;
|
import static com.android.launcher3.logging.LoggerUtils.newLauncherEvent;
|
||||||
import static com.android.launcher3.userevent.nano.LauncherLogProto.ControlType.CANCEL_TARGET;
|
import static com.android.launcher3.userevent.nano.LauncherLogProto.ControlType.CANCEL_TARGET;
|
||||||
import static com.android.systemui.shared.system.LauncherEventUtil.VISIBLE;
|
import static com.android.systemui.shared.system.LauncherEventUtil.VISIBLE;
|
||||||
|
@ -27,20 +26,20 @@ import static com.android.systemui.shared.system.LauncherEventUtil.RECENTS_QUICK
|
||||||
import static com.android.systemui.shared.system.LauncherEventUtil.RECENTS_SWIPE_UP_ONBOARDING_TIP;
|
import static com.android.systemui.shared.system.LauncherEventUtil.RECENTS_SWIPE_UP_ONBOARDING_TIP;
|
||||||
|
|
||||||
import com.android.launcher3.logging.UserEventDispatcher;
|
import com.android.launcher3.logging.UserEventDispatcher;
|
||||||
import com.android.launcher3.model.nano.LauncherDumpProto;
|
|
||||||
import com.android.launcher3.userevent.nano.LauncherLogExtensions;
|
|
||||||
import com.android.launcher3.userevent.nano.LauncherLogProto;
|
import com.android.launcher3.userevent.nano.LauncherLogProto;
|
||||||
import com.android.systemui.shared.system.LauncherEventUtil;
|
|
||||||
import com.android.systemui.shared.system.MetricsLoggerCompat;
|
import com.android.systemui.shared.system.MetricsLoggerCompat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class handles AOSP MetricsLogger function calls and logging around
|
* This class handles AOSP MetricsLogger function calls and logging around
|
||||||
* quickstep interactions.
|
* quickstep interactions.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public class UserEventDispatcherExtension extends UserEventDispatcher {
|
public class UserEventDispatcherExtension extends UserEventDispatcher {
|
||||||
|
|
||||||
private static final String TAG = "UserEventDispatcher";
|
private static final String TAG = "UserEventDispatcher";
|
||||||
|
|
||||||
|
public UserEventDispatcherExtension(Context context) { }
|
||||||
|
|
||||||
public void logStateChangeAction(int action, int dir, int srcChildTargetType,
|
public void logStateChangeAction(int action, int dir, int srcChildTargetType,
|
||||||
int srcParentContainerType, int dstContainerType,
|
int srcParentContainerType, int dstContainerType,
|
||||||
int pageIndex) {
|
int pageIndex) {
|
||||||
|
|
|
@ -142,6 +142,8 @@ public class ImportDataTask {
|
||||||
// First row of first screen is not empty
|
// First row of first screen is not empty
|
||||||
createEmptyRowOnFirstScreen = c.moveToNext();
|
createEmptyRowOnFirstScreen = c.moveToNext();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
createEmptyRowOnFirstScreen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayList<ContentProviderOperation> insertOperations = new ArrayList<>(BATCH_INSERT_SIZE);
|
ArrayList<ContentProviderOperation> insertOperations = new ArrayList<>(BATCH_INSERT_SIZE);
|
||||||
|
|
|
@ -36,7 +36,6 @@ import android.widget.FrameLayout;
|
||||||
|
|
||||||
import com.android.launcher3.AppWidgetResizeFrame;
|
import com.android.launcher3.AppWidgetResizeFrame;
|
||||||
import com.android.launcher3.InvariantDeviceProfile;
|
import com.android.launcher3.InvariantDeviceProfile;
|
||||||
import com.android.launcher3.Launcher;
|
|
||||||
import com.android.launcher3.LauncherAppState;
|
import com.android.launcher3.LauncherAppState;
|
||||||
import com.android.launcher3.R;
|
import com.android.launcher3.R;
|
||||||
import com.android.launcher3.Utilities;
|
import com.android.launcher3.Utilities;
|
||||||
|
@ -68,6 +67,10 @@ public class QsbContainerView extends FrameLayout {
|
||||||
super.setPadding(0, 0, 0, 0);
|
super.setPadding(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void setPaddingUnchecked(int left, int top, int right, int bottom) {
|
||||||
|
super.setPadding(left, top, right, bottom);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A fragment to display the QSB.
|
* A fragment to display the QSB.
|
||||||
*/
|
*/
|
||||||
|
@ -100,7 +103,7 @@ public class QsbContainerView extends FrameLayout {
|
||||||
mWrapper = new FrameLayout(getActivity());
|
mWrapper = new FrameLayout(getActivity());
|
||||||
|
|
||||||
// Only add the view when enabled
|
// Only add the view when enabled
|
||||||
if (FeatureFlags.QSB_ON_FIRST_SCREEN) {
|
if (isQsbEnabled()) {
|
||||||
mWrapper.addView(createQsb(mWrapper));
|
mWrapper.addView(createQsb(mWrapper));
|
||||||
}
|
}
|
||||||
return mWrapper;
|
return mWrapper;
|
||||||
|
@ -212,7 +215,7 @@ public class QsbContainerView extends FrameLayout {
|
||||||
|
|
||||||
private void rebindFragment() {
|
private void rebindFragment() {
|
||||||
// Exit if the embedded qsb is disabled
|
// Exit if the embedded qsb is disabled
|
||||||
if (!FeatureFlags.QSB_ON_FIRST_SCREEN) {
|
if (!isQsbEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,6 +224,10 @@ public class QsbContainerView extends FrameLayout {
|
||||||
mWrapper.addView(createQsb(mWrapper));
|
mWrapper.addView(createQsb(mWrapper));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isQsbEnabled() {
|
||||||
|
return FeatureFlags.QSB_ON_FIRST_SCREEN;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue