Bug
6710029
When the screen is locked during video play, the activity result
from that play will be triggered immediately when unlocking to
camera. The result must be destroyed on unlock so that the resume
goes to the camera rather than to the video display.
Change-Id: Ifa6f00fa1cba119d5fc6e762d1757bd6aac576f4
protected void onCreate(Bundle data, Bundle storedState) {
}
+ protected void clearStateResult() {
+ }
+
BroadcastReceiver mPowerIntentReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
}
}
+ @Override
+ protected void clearStateResult() {
+ mHasActivityResult = false;
+ }
+
private class PreparePhotoFallback implements OnGLIdleListener {
private PhotoFallbackEffect mPhotoFallback = new PhotoFallbackEffect();
private boolean mResultReady = false;
getTopState().onStateResult(requestCode, resultCode, data);
}
+ public void clearActivityResult() {
+ if (!mStack.isEmpty()) {
+ getTopState().clearStateResult();
+ }
+ }
+
public int getStateCount() {
return mStack.size();
}