Skip to content

Commit 7f88cfb

Browse files
levi-wu0xZOne
authored andcommitted
FlutterBoostActivity 暴露更新 SystemUIOverlays 方法
1 parent 0a370b2 commit 7f88cfb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

android/src/main/java/com/idlefish/flutterboost/containers/FlutterBoostActivity.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,17 @@ public void onResume() {
130130
// Since we takeover PlatformPlugin from FlutterActivityAndFragmentDelegate,
131131
// the system UI overlays can't be updated in |onPostResume| callback. So we
132132
// update system UI overlays to match Flutter's desired system chrome style here.
133-
Assert.assertNotNull(platformPlugin);
134-
platformPlugin.updateSystemUiOverlays();
133+
onUpdateSystemUiOverlays();
135134
});
136135
}
137136

137+
// Update system UI overlays to match Flutter's desired system chrome style
138+
protected void onUpdateSystemUiOverlays() {
139+
if (isDebugLoggingEnabled()) Log.d(TAG, "#onUpdateSystemUiOverlays: " + this);
140+
Assert.assertNotNull(platformPlugin);
141+
platformPlugin.updateSystemUiOverlays();
142+
}
143+
138144
@Override
139145
protected void onPause() {
140146
super.onPause();

0 commit comments

Comments
 (0)