Skip to content

Commit

Permalink
Fix API level for getCurrentInterruptionFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Pawellek committed Sep 15, 2020
1 parent 5f6c798 commit 1621ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/reactlibrary/RNRingerMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void getRingerMode(Promise promise) {

@ReactMethod
public void getInterruptionFilter(Promise promise) {
if (nm == null) {
if (nm == null || android.os.Build.VERSION.SDK_INT < 23) {
promise.resolve("UNKNOWN");
return;
}
Expand Down

0 comments on commit 1621ff0

Please sign in to comment.