Skip to content
This repository was archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
Add ACCESS_BACKGROUND_LOCATION to permissions enum, resolves #14
Browse files Browse the repository at this point in the history
  • Loading branch information
afollestad committed Jan 18, 2020
1 parent 956897f commit da81965
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/src/main/java/com/afollestad/assent/Permissions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("unused")

package com.afollestad.assent

import android.Manifest
import android.annotation.SuppressLint

/**
* See http://developer.android.com/guide/topics/security/permissions.html#normal-dangerous for a
* list of 'dangerous' permissions that require a permission request on API 23.
*/
@SuppressLint("InlinedApi")
enum class Permission(val value: String) {
UNKNOWN(""),
Expand All @@ -38,6 +36,7 @@ enum class Permission(val value: String) {

ACCESS_FINE_LOCATION(Manifest.permission.ACCESS_FINE_LOCATION),
ACCESS_COARSE_LOCATION(Manifest.permission.ACCESS_COARSE_LOCATION),
ACCESS_BACKGROUND_LOCATION(Manifest.permission.ACCESS_BACKGROUND_LOCATION),

RECORD_AUDIO(Manifest.permission.RECORD_AUDIO),

Expand Down

0 comments on commit da81965

Please sign in to comment.