Add "Rear Camera in Video Messages"
This commit is contained in:
@@ -30,4 +30,5 @@ object ExteraConfig {
|
||||
var archiveOnPull by sharedPreferences.boolean("archiveOnPull", true)
|
||||
var dateOfForwardedMsg by sharedPreferences.boolean("dateOfForwardedMsg", false)
|
||||
// Media
|
||||
var rearVideoMessages by sharedPreferences.boolean("rearVideoMessages", false)
|
||||
}
|
||||
@@ -68,5 +68,16 @@ class ChatsPreferencesEntry : BasePreferencesEntry {
|
||||
}
|
||||
}
|
||||
}
|
||||
category(LocaleController.getString("Media", R.string.Media)) {
|
||||
switch {
|
||||
title = LocaleController.getString("RearVideoMessages", R.string.RearVideoMessages)
|
||||
|
||||
contract({
|
||||
return@contract ExteraConfig.rearVideoMessages
|
||||
}) {
|
||||
ExteraConfig.rearVideoMessages = it
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -109,6 +109,8 @@ import javax.microedition.khronos.egl.EGLDisplay;
|
||||
import javax.microedition.khronos.egl.EGLSurface;
|
||||
import javax.microedition.khronos.opengles.GL;
|
||||
|
||||
import com.exteragram.messenger.ExteraConfig;
|
||||
|
||||
@TargetApi(18)
|
||||
public class InstantCameraView extends FrameLayout implements NotificationCenter.NotificationCenterDelegate {
|
||||
|
||||
@@ -538,7 +540,7 @@ public class InstantCameraView extends FrameLayout implements NotificationCenter
|
||||
textureOverlayView.setImageResource(R.drawable.icplaceholder);
|
||||
}
|
||||
cameraReady = false;
|
||||
isFrontface = true;
|
||||
isFrontface = !ExteraConfig.INSTANCE.getRearVideoMessages();
|
||||
selectedCamera = null;
|
||||
recordedTime = 0;
|
||||
progress = 0;
|
||||
|
||||
@@ -37,4 +37,7 @@
|
||||
<string name="HideKeyboardOnScroll">Hide Keyboard on Scrolling</string>
|
||||
<string name="ArchiveOnPull">Open Archive on Pulldown</string>
|
||||
<string name="DateOfForwardedMsg">Show date of forwarded message</string>
|
||||
|
||||
<string name="Media">Media</string>
|
||||
<string name="RearVideoMessages">Rear Camera in Video Messages</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user