Try to fix more bugs

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-04 22:13:50 +02:00
parent 6bc0a64c73
commit 0ca28326cd
3 changed files with 11 additions and 15 deletions

View File

@ -16,7 +16,7 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionCode 39
versionName "2.0.0"
versionName "2.0.0beta6"
flavorDimensions "default"

View File

@ -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

View File

@ -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())