mTranslator.translateRectInAppWindowToScreen(mScreenRect);
}
- if (mSurfaceControl != null
- && (!isHardwareAccelerated() || !mRtHandlingPositionUpdates)) {
+ if (!isHardwareAccelerated() || !mRtHandlingPositionUpdates) {
try {
if (DEBUG) Log.d(TAG, String.format("%d updateSurfacePosition UI, " +
"postion = [%d, %d, %d, %d]", System.identityHashCode(this),
mIsAmbientMode = ambient;
}
- void setWindowVisibility(int visibility) {
- if (visibility != mAttachInfo.mWindowVisibility) {
- mAttachInfo.mWindowVisibility = visibility;
- mView.dispatchWindowVisibilityChanged(visibility);
- }
- }
-
void setWindowStopped(boolean stopped) {
if (mStopped != stopped) {
mStopped = stopped;
if (renderer != null) {
renderer.destroyHardwareResources(mView);
}
- mView.dispatchWindowVisibilityChanged(View.GONE);
}
}
}
}
int getHostVisibility() {
- return (mAppVisible || mForceDecorViewVisibility) && !mStopped
- ? mView.getVisibility() : View.GONE;
+ return (mAppVisible || mForceDecorViewVisibility) ? mView.getVisibility() : View.GONE;
}
/**
}
if (viewVisibilityChanged) {
- setWindowVisibility(viewVisibility);
-
+ mAttachInfo.mWindowVisibility = viewVisibility;
+ host.dispatchWindowVisibilityChanged(viewVisibility);
if (viewUserVisibilityChanged) {
host.dispatchVisibilityAggregated(viewVisibility == View.VISIBLE);
}