Skip to content

Commit

Permalink
feat: temp make white bar transparent
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com>
  • Loading branch information
NextAlone committed Feb 4, 2025
1 parent a650450 commit 8cdc5b8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,15 @@ public void onViewDetachedFromWindow(View v) {
});
}
BackupAgent.requestBackup(this);

getWindow().setNavigationBarColor(Color.TRANSPARENT);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
getWindow().setNavigationBarContrastEnforced(false);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
getWindow().setDecorFitsSystemWindows(false);
}
}

private void showAttachMenuBot(TLRPC.TL_attachMenuBot attachMenuBot, String startApp, boolean sidemenu) {
Expand Down

0 comments on commit 8cdc5b8

Please sign in to comment.