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
152945f7
Commit
152945f7
authored
Jan 04, 2018
by
IjzerenHein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed build error as also reported in #284
parent
6d0a9cfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
RNDeviceModule.java
...c/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java
+1
-1
No files found.
android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java
View file @
152945f7
...
@@ -174,7 +174,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
...
@@ -174,7 +174,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
JELLY_BEAN_MR1
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
JELLY_BEAN_MR1
)
{
try
{
try
{
constants
.
put
(
"userAgent"
,
WebSettings
.
getDefaultUserAgent
(
this
.
reactContext
));
constants
.
put
(
"userAgent"
,
WebSettings
.
getDefaultUserAgent
(
this
.
reactContext
));
}
catch
(
PackageManager
.
NameNotFound
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
constants
.
put
(
"userAgent"
,
System
.
getProperty
(
"http.agent"
));
constants
.
put
(
"userAgent"
,
System
.
getProperty
(
"http.agent"
));
}
}
}
}
...
...
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