Removing unnecessary isBindingItems method from ActivityContext
Bug: 393703968 Flag: EXEMPT refactor Test: Presubmit Change-Id: I06fd1dcc81da5e5502a9fb0751c2701b26fd4621
This commit is contained in:
1 parent
967c4999a6
commit
d8e5ddb4cd
6 files changed
+4
-43
No files matched your search
@@ -2948,11 +2948,6 @@ public class Launcher extends StatefulActivity<LauncherState>
|
||||
return mModelCallbacks.getWorkspaceLoading();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBindingItems() {
|
||||
return isWorkspaceLoading();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a touch interaction is in progress
|
||||
*/
|
||||
|
||||
@@ -57,7 +57,6 @@ import com.android.launcher3.popup.PopupContainerWithArrow;
|
||||
import com.android.launcher3.popup.PopupDataProvider;
|
||||
import com.android.launcher3.touch.ItemClickHandler.ItemClickProxy;
|
||||
import com.android.launcher3.util.ComponentKey;
|
||||
import com.android.launcher3.util.IntSet;
|
||||
import com.android.launcher3.util.PackageUserKey;
|
||||
import com.android.launcher3.util.Preconditions;
|
||||
import com.android.launcher3.util.Themes;
|
||||
@@ -83,7 +82,6 @@ public class SecondaryDisplayLauncher extends BaseActivity
|
||||
private boolean mAppDrawerShown = false;
|
||||
|
||||
private StringCache mStringCache;
|
||||
private boolean mBindingItems = false;
|
||||
private SecondaryDisplayPredictions mSecondaryDisplayPredictions;
|
||||
|
||||
private final int[] mTempXY = new int[2];
|
||||
@@ -260,20 +258,9 @@ public class SecondaryDisplayLauncher extends BaseActivity
|
||||
|
||||
@Override
|
||||
public void startBinding() {
|
||||
mBindingItems = true;
|
||||
mDragController.cancelDrag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBindingItems() {
|
||||
return mBindingItems;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finishBindingItems(IntSet pagesBoundFirst) {
|
||||
mBindingItems = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bindDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMap) {
|
||||
mPopupDataProvider.setDeepShortcutMap(deepShortcutMap);
|
||||
|
||||
@@ -270,11 +270,6 @@ public interface ActivityContext {
|
||||
*/
|
||||
default void applyOverwritesToLogItem(LauncherAtom.ItemInfo.Builder itemInfoBuilder) { }
|
||||
|
||||
/** Returns {@code true} if items are currently being bound within this context. */
|
||||
default boolean isBindingItems() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default View.OnClickListener getItemOnClickListener() {
|
||||
return v -> {
|
||||
// No op.
|
||||
|
||||
Reference in new issue
Block a user