New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-19769] (5_2_X) Android: Fix for fullscreen behavior in Camera #7663
Conversation
This is for 5_2_X. Will add a Master branch PR once this is approved. |
@@ -134,7 +137,7 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) | |||
@Override | |||
public void onCreate(Bundle savedInstanceState) | |||
{ | |||
setFullscreen(true); | |||
setFullscreenForCamera(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since base class should be agnostic of derived classes, adding camera specific method in base class is not advised.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
can be moved here. Also this is being used specifically for TiCameraActivity only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved the setFullscreenForCamera
method into this class to address this in the updated commit.
@ashcoding please address the review comments. |
Comments addressed @sriks. Please review again. Thank you. |
@@ -161,6 +164,13 @@ public void onCreate(Bundle savedInstanceState) | |||
|
|||
} | |||
|
|||
public void setFullscreenForCamera(boolean fullscreen) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checking for truth value is not required since we never set back from fullscreen.
@sriks, Comments addressed. |
[TIMOB-19769] (5_2_X) Android: Fix for fullscreen behavior in Camera
PR reviewed and merged! |
Jira: https://jira.appcelerator.org/browse/TIMOB-19769
PR #7552 caused an edge case issue for Camera.
Code to test:-