mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-27 08:37:47 +01:00
make the buttons not clickable if invisible
This commit is contained in:
parent
0526a2e111
commit
5962fc695e
@ -172,7 +172,6 @@ public class MainActivity extends SimpleActivity
|
||||
mTimerHandler = new Handler();
|
||||
mFadeHandler = new Handler();
|
||||
setupPreviewImage(true);
|
||||
scheduleFadeOut();
|
||||
}
|
||||
|
||||
private boolean hasCameraAndStoragePermission() {
|
||||
@ -478,6 +477,11 @@ public class MainActivity extends SimpleActivity
|
||||
|
||||
private void fadeAnim(View view, float value) {
|
||||
view.animate().alpha(value).start();
|
||||
if (value == .0f) {
|
||||
view.setClickable(false);
|
||||
} else {
|
||||
view.setClickable(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void hideNavigationBarIcons() {
|
||||
@ -512,6 +516,7 @@ public class MainActivity extends SimpleActivity
|
||||
if (hasCameraAndStoragePermission()) {
|
||||
resumeCameraItems();
|
||||
setupPreviewImage(mIsInPhotoMode);
|
||||
scheduleFadeOut();
|
||||
|
||||
if (mIsVideoCaptureIntent && mIsInPhotoMode) {
|
||||
togglePhotoVideo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user