mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Moving some methods from various activities to the base interface
This allows creating some custom views in the absence of activity context Bug: 118758696 Change-Id: I23999290e972a2a8cbd725a521a4e0c7c2e5023e
This commit is contained in:
@@ -44,7 +44,7 @@ import com.android.launcher3.views.ActivityContext;
|
||||
* Extension of BaseActivity allowing support for drag-n-drop
|
||||
*/
|
||||
public abstract class BaseDraggingActivity extends BaseActivity
|
||||
implements WallpaperColorInfo.OnChangeListener, ActivityContext {
|
||||
implements WallpaperColorInfo.OnChangeListener {
|
||||
|
||||
private static final String TAG = "BaseDraggingActivity";
|
||||
|
||||
@@ -139,16 +139,10 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract BaseDragLayer getDragLayer();
|
||||
|
||||
public abstract <T extends View> T getOverviewPanel();
|
||||
|
||||
public abstract View getRootView();
|
||||
|
||||
public abstract BadgeInfo getBadgeInfoForItem(ItemInfo info);
|
||||
|
||||
public abstract void invalidateParent(ItemInfo info);
|
||||
|
||||
public Rect getViewBounds(View v) {
|
||||
int[] pos = new int[2];
|
||||
v.getLocationOnScreen(pos);
|
||||
|
||||
Reference in New Issue
Block a user