Skip to content

Commit 5efa8de

Browse files
author
xianing
committed
fix camera permission issue
1 parent ce8732e commit 5efa8de

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SuperResolution.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ public void onClick(View v)
176176
}
177177
else if(v.getId() == R.id.btn_super_resolution){
178178
int ret = engine.enableRemoteSuperResolution(remoteUid, !enableSuperResolution);
179+
if(enableSuperResolution){
180+
enableSuperResolution = false;
181+
btnSuperResolution.setText(getText(R.string.opensuperr));
182+
}
179183
if(ret!=0){
180184
Log.w(TAG, String.format("onWarning code %d ", ret));
181185
}

Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void onClick(View v) {
116116
// call when join button hit
117117
String channelId = et_channel.getText().toString();
118118
// Check permission
119-
if (AndPermission.hasPermissions(this, Permission.Group.STORAGE, Permission.Group.MICROPHONE, Permission.Group.CAMERA)) {
119+
if (AndPermission.hasPermissions(this, Permission.Group.STORAGE, Permission.Group.MICROPHONE)) {
120120
joinChannel(channelId);
121121
return;
122122
}

0 commit comments

Comments
 (0)