Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
43f4ffc5
Unverified
Commit
43f4ffc5
authored
May 17, 2019
by
Sebastian Roth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add checkServiceStatus implementation for phone capability on Android.
parent
51cbbd2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
android/src/main/java/com/baseflow/permissionhandler/PermissionHandlerPlugin.java
+5
-0
No files found.
android/src/main/java/com/baseflow/permissionhandler/PermissionHandlerPlugin.java
View file @
43f4ffc5
...
...
@@ -281,6 +281,11 @@ public class PermissionHandlerPlugin implements MethodCallHandler {
return
isLocationServiceEnabled
(
context
)
?
SERVICE_STATUS_ENABLED
:
SERVICE_STATUS_DISABLED
;
}
if
(
permission
==
PERMISSION_GROUP_PHONE
)
{
PackageManager
pm
=
context
.
getPackageManager
();
return
pm
.
hasSystemFeature
(
PackageManager
.
FEATURE_TELEPHONY
)
?
SERVICE_STATUS_ENABLED
:
SERVICE_STATUS_NOT_APPLICABLE
;
}
return
SERVICE_STATUS_NOT_APPLICABLE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment