summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2015-09-27 15:43:53 -0700
committerDanesh M <daneshm90@gmail.com>2015-09-27 15:43:53 -0700
commit6d5f97506bc6b93471d7e29bd2cbd996895cc0d7 (patch)
treed2b5d2d37a57b2c472f8ea2653df1356dd04e626 /src/com/android/launcher3/Launcher.java
parent7d020886d2b81a8523dc9f06d2dd078e65107def (diff)
downloadandroid_packages_apps_Trebuchet-6d5f97506bc6b93471d7e29bd2cbd996895cc0d7.tar.gz
android_packages_apps_Trebuchet-6d5f97506bc6b93471d7e29bd2cbd996895cc0d7.tar.bz2
android_packages_apps_Trebuchet-6d5f97506bc6b93471d7e29bd2cbd996895cc0d7.zip
Revert "Show apps as unavailable when on unmounted storage"
This reverts commit 53b6e9dd1a97ea59a84e4c8b7172e1773d990ee5.
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java40
1 files changed, 2 insertions, 38 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 766d3f7d5..382c24b61 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3143,15 +3143,11 @@ public class Launcher extends Activity
final Intent intent;
if (tag instanceof ShortcutInfo) {
shortcut = (ShortcutInfo) tag;
- if (shortcut.isDisabled) {
- Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_SHORT).show();
- return;
- }
intent = shortcut.intent;
int[] pos = new int[2];
v.getLocationOnScreen(pos);
- intent.setSourceBounds(
- new Rect(pos[0], pos[1], pos[0] + v.getWidth(), pos[1] + v.getHeight()));
+ intent.setSourceBounds(new Rect(pos[0], pos[1],
+ pos[0] + v.getWidth(), pos[1] + v.getHeight()));
} else if (tag instanceof AppInfo) {
shortcut = null;
@@ -5685,38 +5681,6 @@ public class Launcher extends Activity
}
/**
- * A package has become unavailable.
- *
- * Implementation of the method from LauncherModel.Callbacks.
- */
- public void bindComponentsUnavailable(final ArrayList<String> packageNames,
- final ArrayList<AppInfo> appInfos) {
- if (!packageNames.isEmpty()) {
- mWorkspace.updateUnavailableItemsByPackageName(packageNames);
- }
- // Notify the drag controller
- mDragController.onAppsRemoved(packageNames, appInfos);
-
- // Update AllApps
- if (!LauncherAppState.isDisableAllApps() &&
- mAppsCustomizeContent != null) {
- mAppsCustomizeContent.removeApps(appInfos);
- mAppDrawerAdapter.removeApps(appInfos);
- }
- }
-
- /**
- * A package has become unavailable.
- *
- * Implementation of the method from LauncherModel.Callbacks.
- */
- public void bindComponentsAvailable(final ArrayList<ItemInfo> itemInfos) {
- if (!itemInfos.isEmpty()) {
- mWorkspace.updateAvailableItems(itemInfos);
- }
- }
-
- /**
* A number of packages were updated.
*/
private ArrayList<Object> mWidgetsAndShortcuts;