Skip to content

Commit

Permalink
fix: remove unnecessary window insets listener affecting FAB position…
Browse files Browse the repository at this point in the history
…ing with keyboard
  • Loading branch information
Edward-NewGate-KOC committed Jan 2, 2025
1 parent fe78d0c commit 6acec3a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ public void onCreate(Bundle savedInstanceState) {
binding = ManageLocallibrariesBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());

ViewCompat.setOnApplyWindowInsetsListener(binding.downloadLibraryButton, new AddMarginOnApplyWindowInsetsListener(WindowInsetsCompat.Type.navigationBars(), WindowInsetsCompat.CONSUMED));

ViewCompat.setOnApplyWindowInsetsListener(binding.contextualToolbarContainer, (v, windowInsets) -> {
var insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(insets.left, insets.top, insets.right, 0);
Expand Down

0 comments on commit 6acec3a

Please sign in to comment.