mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
parent
8c63211aaf
commit
c7599094f5
@ -4,6 +4,7 @@
|
|||||||
<org.thoughtcrime.securesms.components.camera.QuickCamera
|
<org.thoughtcrime.securesms.components.camera.QuickCamera
|
||||||
android:id="@+id/quick_camera"
|
android:id="@+id/quick_camera"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
</merge>
|
</merge>
|
@ -128,6 +128,7 @@ public class QuickAttachmentDrawer extends ViewGroup {
|
|||||||
}
|
}
|
||||||
shutterButton.setOnClickListener(new ShutterClickListener());
|
shutterButton.setOnClickListener(new ShutterClickListener());
|
||||||
fullScreenButton.setOnClickListener(new FullscreenClickListener());
|
fullScreenButton.setOnClickListener(new FullscreenClickListener());
|
||||||
|
controls.setVisibility(GONE);
|
||||||
addView(controls, controlsIndex > -1 ? controlsIndex : indexOfChild(quickCamera) + 1);
|
addView(controls, controlsIndex > -1 ? controlsIndex : indexOfChild(quickCamera) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,8 +274,12 @@ public class QuickAttachmentDrawer extends ViewGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (slideOffset == COLLAPSED_ANCHOR_POINT && quickCamera.isStarted()) {
|
if (slideOffset == COLLAPSED_ANCHOR_POINT && quickCamera.isStarted()) {
|
||||||
|
controls.setVisibility(GONE);
|
||||||
|
quickCamera.setVisibility(GONE);
|
||||||
quickCamera.onPause();
|
quickCamera.onPause();
|
||||||
} else if (slideOffset != COLLAPSED_ANCHOR_POINT && !quickCamera.isStarted()) {
|
} else if (slideOffset != COLLAPSED_ANCHOR_POINT && !quickCamera.isStarted()) {
|
||||||
|
controls.setVisibility(VISIBLE);
|
||||||
|
quickCamera.setVisibility(VISIBLE);
|
||||||
quickCamera.onResume();
|
quickCamera.onResume();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ import java.util.List;
|
|||||||
super(context, attrs, defStyle);
|
super(context, attrs, defStyle);
|
||||||
cameraHost = new QuickCameraHost(context);
|
cameraHost = new QuickCameraHost(context);
|
||||||
setHost(cameraHost);
|
setHost(cameraHost);
|
||||||
setClickable(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user