am 48c84052: Merge change 27162 into eclair
Merge commit '48c84052e25c1ac1cdb6c86ac2d231d40a7801af' into eclair-plus-aosp * commit '48c84052e25c1ac1cdb6c86ac2d231d40a7801af': Fix Activity.overridePendingTransition().
This commit is contained in:
@@ -3020,9 +3020,9 @@ public class Activity extends ContextThemeWrapper
|
||||
* or {@link #finish} to specify an explicit transition animation to
|
||||
* perform next.
|
||||
* @param enterAnim A resource ID of the animation resource to use for
|
||||
* the incoming activity.
|
||||
* the incoming activity. Use 0 for no animation.
|
||||
* @param exitAnim A resource ID of the animation resource to use for
|
||||
* the outgoing activity.
|
||||
* the outgoing activity. Use 0 for no animation.
|
||||
*/
|
||||
public void overridePendingTransition(int enterAnim, int exitAnim) {
|
||||
try {
|
||||
|
||||
@@ -3122,7 +3122,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
|
||||
public void overridePendingAppTransition(String packageName,
|
||||
int enterAnim, int exitAnim) {
|
||||
if (mNextAppTransition != WindowManagerPolicy.TRANSIT_UNSET){
|
||||
if (mNextAppTransition != WindowManagerPolicy.TRANSIT_UNSET) {
|
||||
mNextAppTransitionPackage = packageName;
|
||||
mNextAppTransitionEnter = enterAnim;
|
||||
mNextAppTransitionExit = exitAnim;
|
||||
@@ -9327,7 +9327,6 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
transit = WindowManagerPolicy.TRANSIT_UNSET;
|
||||
}
|
||||
mNextAppTransition = WindowManagerPolicy.TRANSIT_UNSET;
|
||||
mNextAppTransitionPackage = null;
|
||||
mAppTransitionReady = false;
|
||||
mAppTransitionRunning = true;
|
||||
mAppTransitionTimeout = false;
|
||||
@@ -9484,6 +9483,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
wtoken.allDrawn = true;
|
||||
}
|
||||
|
||||
mNextAppTransitionPackage = null;
|
||||
|
||||
mOpeningApps.clear();
|
||||
mClosingApps.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user