mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 21:37:34 +00:00
Add button to flip camera (front vs rear). Fixes #6279
This commit is contained in:

committed by
Greyson Parrelli

parent
6c1a1fb9ad
commit
f1c79eaebf
9
res/drawable/webrtc_camera_flip_button.xml
Normal file
9
res/drawable/webrtc_camera_flip_button.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/webrtc_control_background"/>
|
||||
<item android:top="5dp"
|
||||
android:left="5dp"
|
||||
android:right="5dp"
|
||||
android:bottom="5dp"
|
||||
android:drawable="@drawable/quick_camera_rear"/>
|
||||
</layer-list>
|
@@ -34,6 +34,13 @@
|
||||
<org.thoughtcrime.securesms.components.AccessibleToggleButton
|
||||
android:id="@+id/video_mute_button"
|
||||
style="@style/WebRtcCallCompoundButton"
|
||||
android:layout_marginRight="15dp"
|
||||
android:background="@drawable/webrtc_video_mute_button"/>
|
||||
|
||||
<org.thoughtcrime.securesms.components.AccessibleToggleButton
|
||||
android:id="@+id/camera_flip_button"
|
||||
style="@style/WebRtcCallCompoundButton"
|
||||
android:contentDescription="@string/redphone_call_controls__flip_camera_rear"
|
||||
android:background="@drawable/webrtc_camera_flip_button"/>
|
||||
|
||||
</merge>
|
||||
|
@@ -995,6 +995,7 @@
|
||||
<!--- redphone_call_controls -->
|
||||
<string name="redphone_call_card__signal_call">Signal Call</string>
|
||||
<string name="redphone_call_controls__mute">Mute</string>
|
||||
<string name="redphone_call_controls__flip_camera_rear">Use rear camera</string>
|
||||
<string name="redphone_call_controls__signal_call">Signal Call</string>
|
||||
|
||||
<!-- registration_activity -->
|
||||
|
Reference in New Issue
Block a user