Merge "Fix bugs with dragging items out of folders" into jb-ub-gel-agar
This commit is contained in:
commit
114cbcebbc
2 files changed
+9
-3
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user