kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Add super.onRequestPermissionsResult where missing
rodzic
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();
|
||||
|
|
Ładowanie…
Reference in New Issue