Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
gstraube committed Jan 20, 2024
1 parent 868ca47 commit 8801ce5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/github/cythara/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.cythara;

import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
Expand Down Expand Up @@ -189,6 +190,7 @@ public void onBackPressed() {
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == RECORD_AUDIO_PERMISSION) {
if (grantResults.length > 0) {
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Expand Down

0 comments on commit 8801ce5

Please sign in to comment.