Add super.onRequestPermissionsResult where missing
This commit is contained in:
parent
e4885e3c52
commit
1061fca6a3
|
@ -603,6 +603,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
public void onRequestPermissionsResult(final int requestCode,
|
||||
@NonNull final String[] permissions,
|
||||
@NonNull final int[] grantResults) {
|
||||
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||
for (final int i : grantResults) {
|
||||
if (i == PackageManager.PERMISSION_DENIED) {
|
||||
return;
|
||||
|
|
|
@ -590,6 +590,7 @@ public class RouterActivity extends AppCompatActivity {
|
|||
public void onRequestPermissionsResult(final int requestCode,
|
||||
@NonNull final String[] permissions,
|
||||
@NonNull final int[] grantResults) {
|
||||
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||
for (final int i : grantResults) {
|
||||
if (i == PackageManager.PERMISSION_DENIED) {
|
||||
finish();
|
||||
|
|
Loading…
Reference in New Issue