Skip to content

Commit 5907220

Browse files
graycreateclaude
andcommitted
feat: hide toolbar in VshareWebActivity for fullscreen experience
Override attachToolbar() to return null, which tells BaseActivity not to create a toolbar for this activity. This provides a true fullscreen WebView experience without any app chrome. Implementation follows the existing pattern used in TwoStepLoginActivity and other fullscreen activities in the codebase. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c222c94 commit 5907220

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/src/main/java/me/ghui/v2er/module/vshare/VshareWebActivity.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
import android.widget.ProgressBar;
1818
import android.widget.Toast;
1919

20+
import androidx.annotation.Nullable;
21+
2022
import butterknife.BindView;
2123
import me.ghui.v2er.R;
2224
import me.ghui.v2er.module.base.BaseActivity;
2325
import me.ghui.v2er.module.base.BaseContract;
2426
import me.ghui.v2er.util.DarkModelUtils;
27+
import me.ghui.v2er.widget.BaseToolBar;
2528

2629
/**
2730
* Fullscreen WebView Activity for displaying vshare page
@@ -48,6 +51,13 @@ protected int attachLayoutRes() {
4851
return R.layout.activity_vshare_web;
4952
}
5053

54+
@Nullable
55+
@Override
56+
protected BaseToolBar attachToolbar() {
57+
// Return null to hide the toolbar for fullscreen WebView experience
58+
return null;
59+
}
60+
5161
@Override
5262
protected void reloadMode(int mode) {
5363
// Recreate activity to apply new theme

0 commit comments

Comments
 (0)