mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Retiring some feature flags" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
ce15b325e8
@@ -2021,22 +2021,8 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
}
|
||||
|
||||
public void onNoCellFound(View dropTargetLayout) {
|
||||
if (mLauncher.isHotseatLayout(dropTargetLayout)) {
|
||||
Hotseat hotseat = mLauncher.getHotseat();
|
||||
boolean droppedOnAllAppsIcon = !FeatureFlags.NO_ALL_APPS_ICON
|
||||
&& mTargetCell != null && !mLauncher.getDeviceProfile().inv.isAllAppsButtonRank(
|
||||
hotseat.getOrderInHotseat(mTargetCell[0], mTargetCell[1]));
|
||||
if (!droppedOnAllAppsIcon) {
|
||||
// Only show message when hotseat is full and drop target was not AllApps button
|
||||
showOutOfSpaceMessage(true);
|
||||
}
|
||||
} else {
|
||||
showOutOfSpaceMessage(false);
|
||||
}
|
||||
}
|
||||
|
||||
private void showOutOfSpaceMessage(boolean isHotseatLayout) {
|
||||
int strId = (isHotseatLayout ? R.string.hotseat_out_of_space : R.string.out_of_space);
|
||||
int strId = mLauncher.isHotseatLayout(dropTargetLayout)
|
||||
? R.string.hotseat_out_of_space : R.string.out_of_space;
|
||||
Toast.makeText(mLauncher, mLauncher.getString(strId), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user