mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-29 23:55:49 +01:00
Try to fix more bugs
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
6bc0a64c73
commit
0ca28326cd
@ -16,7 +16,7 @@ android {
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
|
||||
versionCode 39
|
||||
versionName "2.0.0"
|
||||
versionName "2.0.0beta6"
|
||||
|
||||
flavorDimensions "default"
|
||||
|
||||
|
@ -273,10 +273,13 @@ public class CallActivity extends AppCompatActivity {
|
||||
credentials = ApiUtils.getCredentials(userEntity.getUsername(), userEntity.getToken());
|
||||
isVoiceOnlyCall = getIntent().getExtras().getBoolean(BundleKeys.KEY_CALL_VOICE_ONLY, false);
|
||||
|
||||
if (getIntent().getExtras().containsKey(BundleKeys.KEY_MODIFIED_BASE_URL)) {
|
||||
if (userEntity.getUserId().equals("-1")) {
|
||||
credentials = null;
|
||||
baseUrl = getIntent().getExtras().getString(BundleKeys.KEY_MODIFIED_BASE_URL);
|
||||
} else {
|
||||
}
|
||||
|
||||
baseUrl = getIntent().getExtras().getString(BundleKeys.KEY_MODIFIED_BASE_URL, "");
|
||||
|
||||
if (TextUtils.isEmpty(baseUrl)) {
|
||||
baseUrl = userEntity.getBaseUrl();
|
||||
}
|
||||
|
||||
@ -289,7 +292,7 @@ public class CallActivity extends AppCompatActivity {
|
||||
Log.e(TAG, "Failed to evict cache");
|
||||
}
|
||||
|
||||
if (getIntent().getExtras().containsKey(BundleKeys.KEY_FROM_NOTIFICATION_START_CALL)) {
|
||||
if (getIntent().getExtras().containsKey(BundleKeys.KEY_FROM_NOTIFICATION_START_CALL)) {
|
||||
handleFromNotification();
|
||||
} else {
|
||||
initViews();
|
||||
@ -498,14 +501,7 @@ public class CallActivity extends AppCompatActivity {
|
||||
cameraVideoCapturer.switchCamera(new CameraVideoCapturer.CameraSwitchHandler() {
|
||||
@Override
|
||||
public void onCameraSwitchDone(boolean b) {
|
||||
if (b && cameraSwitchCount != -1) {
|
||||
if (cameraSwitchCount == camerasCount) {
|
||||
cameraSwitchCount = 0;
|
||||
pipVideoView.setMirror(false);
|
||||
} else {
|
||||
pipVideoView.setMirror(true);
|
||||
}
|
||||
}
|
||||
pipVideoView.setMirror(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -580,7 +576,7 @@ public class CallActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
// setting this to true because it's not shown by default
|
||||
pipVideoView.setMirror(true);
|
||||
pipVideoView.setMirror(false);
|
||||
pipVideoView.init(rootEglBase.getEglBaseContext(), null);
|
||||
pipVideoView.setZOrderMediaOverlay(true);
|
||||
// disabled because it causes some devices to crash
|
||||
|
@ -338,7 +338,7 @@ public class SettingsController extends BaseController {
|
||||
|
||||
dbQueryDisposable = userUtils.createOrUpdateUser(null,
|
||||
null,
|
||||
null, displayName, null, true,
|
||||
null, displayName, null, null,
|
||||
userProfileOverall.getOcs().getData().getUserId(), userEntity.getId(), null, null)
|
||||
.subscribeOn(Schedulers.newThread())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
|
Loading…
Reference in New Issue
Block a user