Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
xugong
hls-xcmg-vue-app
Commits
0da97848
Commit
0da97848
authored
Sep 27, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'statusBar'
parent
896492d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
StatusBar.java
plugins/cordova-plugin-statusbar/src/android/StatusBar.java
+14
-9
No files found.
plugins/cordova-plugin-statusbar/src/android/StatusBar.java
View file @
0da97848
...
@@ -54,17 +54,22 @@ public class StatusBar extends CordovaPlugin {
...
@@ -54,17 +54,22 @@ public class StatusBar extends CordovaPlugin {
this
.
cordova
.
getActivity
().
runOnUiThread
(
new
Runnable
()
{
this
.
cordova
.
getActivity
().
runOnUiThread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
// Clear flag FLAG_FORCE_NOT_FULLSCREEN which is set initially
// Clear flag FLAG_FORCE_NOT_FULLSCREEN which is set initially
// by the Cordova.
// by the Cordova.
Window
window
=
cordova
.
getActivity
().
getWindow
();
Window
window
=
cordova
.
getActivity
().
getWindow
();
window
.
clearFlags
(
WindowManager
.
LayoutParams
.
FLAG_FORCE_NOT_FULLSCREEN
);
// Read 'StatusBarBackgroundColor' from config.xml, default is #000000.
// window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
setStatusBarBackgroundColor
(
preferences
.
getString
(
"StatusBarBackgroundColor"
,
"#000000"
));
// window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
window
.
setStatusBarColor
(
Color
.
WHITE
);
window
.
setNavigationBarColor
(
Color
.
WHITE
);
//window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
// Read 'StatusBarStyle' from config.xml, default is 'lightcontent'.
// Read 'StatusBarBackgroundColor' from config.xml, default is #000000.
setStatusBarStyle
(
preferences
.
getString
(
"StatusBarStyle"
,
"lightcontent"
));
setStatusBarBackgroundColor
(
preferences
.
getString
(
"StatusBarBackgroundColor"
,
"#FFFFFF"
));
}
// Read 'StatusBarStyle' from config.xml, default is 'lightcontent'.
setStatusBarStyle
(
preferences
.
getString
(
"StatusBarStyle"
,
"lightcontent"
));
}
});
});
}
}
...
...
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