We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b04e815 commit 93021bbCopy full SHA for 93021bb
app/src/main/java/protect/videotranscoder/activity/MainActivity.java
@@ -203,9 +203,9 @@ private void getPermission()
203
public void onRequestPermissionsResult(int requestCode,
204
String permissions[], int[] grantResults)
205
{
206
- if(grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)
+ if(requestCode == READ_WRITE_PERMISSION_REQUEST)
207
208
- if(requestCode == READ_WRITE_PERMISSION_REQUEST)
+ if(grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)
209
210
uploadVideo();
211
}
0 commit comments