Merge "Fix bugs with dragging items out of folders" into jb-ub-gel-agar

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2013-08-02 18:55:25 +00:00
commit 114cbcebbc
2 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -775,7 +775,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
if (target != this) {
if (mOnExitAlarm.alarmPending()) {
mOnExitAlarm.cancelAlarm();
if (successfulDrop) {
if (!successfulDrop) {
mSuppressFolderDeletion = true;
}
completeDragExit();
+8 -2
View File
@@ -802,6 +802,12 @@ public class Launcher extends Activity
(System.currentTimeMillis() - startTimeCallbacks));
}
}
if (mOnResumeCallbacks.size() > 0) {
for (int i = 0; i < mOnResumeCallbacks.size(); i++) {
mOnResumeCallbacks.get(i).run();
}
mOnResumeCallbacks.clear();
}
// Reset the pressed state of icons that were locked in the press state while activities
// were launching
@@ -3438,11 +3444,11 @@ public class Launcher extends Activity
}
public void addOnResumeCallback(Runnable run) {
mBindOnResumeCallbacks.add(run);
mOnResumeCallbacks.add(run);
}
public void removeOnResumeCallback(Runnable run) {
mBindOnResumeCallbacks.remove(run);
mOnResumeCallbacks.remove(run);
}
/**