You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're integration LP into our app, and faced a bug while using Photo sharing feature.
If we press "Gallery" button and Permission dialog appeared, then we'll press "Allow" , ConversationFragment.onRequestPermissionsResult() is called with grantResults={0, -1}
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
switch(requestCode) {
case 1:
LPMobileLog.d(TAG, "permission result = " + grantResults[0]);
if(this.checkAllPermissionsGranted(grantResults)) { //returns false because of {0, -1}
this.startGallery();
return;
}
break;
case 2:
...
}
...
As a result menu with "Gallery" and "Camera" collapsed and Gallery won't be opened.
We're integration LP into our app, and faced a bug while using Photo sharing feature.
If we press "Gallery" button and Permission dialog appeared, then we'll press "Allow" ,
ConversationFragment.onRequestPermissionsResult() is called
withgrantResults
={0, -1}As a result menu with "Gallery" and "Camera" collapsed and Gallery won't be opened.
This is happening because of targeting Android O and some changes about READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE: https://developer.android.com/about/versions/oreo/android-8.0-changes.html#rmp
We use next parameters:
targetSdk : 26,
compileSdk : 26,
buildTools : '26.0.1'
The text was updated successfully, but these errors were encountered: