Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-device-info
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-device-info
Commits
ff2b6b06
Commit
ff2b6b06
authored
Mar 08, 2017
by
Gant Laborde
Committed by
GitHub
Mar 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #154 from testquepp/patch-1
Update RNDeviceModule.java
parents
50e68b4a
fbee7259
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
RNDeviceModule.java
...c/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java
+2
-0
No files found.
android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java
View file @
ff2b6b06
...
@@ -92,7 +92,9 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
...
@@ -92,7 +92,9 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
try
{
try
{
BluetoothAdapter
myDevice
=
BluetoothAdapter
.
getDefaultAdapter
();
BluetoothAdapter
myDevice
=
BluetoothAdapter
.
getDefaultAdapter
();
if
(
mDevice
!=
null
){
deviceName
=
myDevice
.
getName
();
deviceName
=
myDevice
.
getName
();
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
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