Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev am: bc1b36344f am: 7e5e234668
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16215049 Change-Id: I59d603e5413c0a2b1f528fbfcef4d041c519502a
This commit is contained in:
commit
99a6be39ca
3 files changed
+13
-10
No files matched your search
@@ -154,6 +154,7 @@ import com.android.launcher3.model.data.WorkspaceItemInfo;
|
||||
import com.android.launcher3.notification.NotificationListener;
|
||||
import com.android.launcher3.pm.PinRequestHelper;
|
||||
import com.android.launcher3.pm.UserCache;
|
||||
import com.android.launcher3.popup.ArrowPopup;
|
||||
import com.android.launcher3.popup.PopupContainerWithArrow;
|
||||
import com.android.launcher3.popup.PopupDataProvider;
|
||||
import com.android.launcher3.popup.SystemShortcut;
|
||||
@@ -3032,4 +3033,13 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
|
||||
public StatsLogManager getStatsLogManager() {
|
||||
return super.getStatsLogManager().withDefaultInstanceId(mAllAppsSessionLogId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current popup for testing, if any.
|
||||
*/
|
||||
@VisibleForTesting
|
||||
@Nullable
|
||||
public ArrowPopup<?> getOptionsPopup() {
|
||||
return findViewById(R.id.popup_container);
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,6 @@ import android.view.View.OnLongClickListener;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import com.android.launcher3.AbstractFloatingView;
|
||||
@@ -176,11 +175,6 @@ public class OptionsPopupView extends ArrowPopup<Launcher>
|
||||
return children;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public static ArrowPopup getOptionsPopup(Launcher launcher) {
|
||||
return launcher.findViewById(R.id.popup_container);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of supported actions
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user