aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2020-10-12 20:25:01 -0700
committerScott Jackson <daneren2005@gmail.com>2020-10-12 20:25:01 -0700
commit1c2d783f4bc7ad16b7cd4e323317d10e0b20432a (patch)
treeb4b93db623ff8c37cced7093433b01319b74ec50 /app/src/main/java
parent9bc552b5570c91cb6d81956efb46d75630305b35 (diff)
downloaddsub-1c2d783f4bc7ad16b7cd4e323317d10e0b20432a.tar.gz
dsub-1c2d783f4bc7ad16b7cd4e323317d10e0b20432a.tar.bz2
dsub-1c2d783f4bc7ad16b7cd4e323317d10e0b20432a.zip
Add explanation of why user is prompted for location access
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
index 4d8dfb59..3b6935eb 100644
--- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -198,6 +198,15 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
finish();
}
}
+ case PERMISSIONS_REQUEST_LOCATION: {
+ // If request is cancelled, the result arrays are empty.
+ if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
+
+ } else {
+ Util.toast(this, R.string.permission_location_failed);
+ finish();
+ }
+ }
}
}