Fixed sending image via chat while in call
This commit is contained in:
parent
a0f044fa10
commit
4eb1f827d8
2 changed files with 5 additions and 0 deletions
|
@ -1379,6 +1379,10 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
super.onRestoreInstanceState(savedInstanceState);
|
super.onRestoreInstanceState(savedInstanceState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void disableGoToCall() {
|
||||||
|
doNotGoToCallActivity = true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
|
@ -485,6 +485,7 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
Intent chooserIntent = Intent.createChooser(galleryIntent, getString(R.string.image_picker_title));
|
Intent chooserIntent = Intent.createChooser(galleryIntent, getString(R.string.image_picker_title));
|
||||||
chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, cameraIntents.toArray(new Parcelable[]{}));
|
chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, cameraIntents.toArray(new Parcelable[]{}));
|
||||||
|
|
||||||
|
LinphoneActivity.instance().disableGoToCall();
|
||||||
startActivityForResult(chooserIntent, ADD_PHOTO);
|
startActivityForResult(chooserIntent, ADD_PHOTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue