|
|
@@ -58,7 +58,7 @@ public class MainActivity extends AppCompatActivity { |
|
|
|
@Override |
|
|
|
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { |
|
|
|
super.onRequestPermissionsResult(requestCode, permissions, grantResults); |
|
|
|
if (requestCode == REQUEST_PERMISSIONS) { |
|
|
|
if (requestCode == REQUEST_PERMISSION) { |
|
|
|
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { |
|
|
|
// Berechtigungen wurden gewährt |
|
|
|
Toast.makeText(this, "Berechtigungen gewährt", Toast.LENGTH_SHORT).show(); |