Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 4f02487

Browse files
committed
Bring back rounded search view.
1 parent 97cd87c commit 4f02487

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/fox2code/mmm/MainActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newStat
117117
MainActivity.this.searchView.clearFocus();
118118
}
119119
});
120+
this.searchCard.setRadius(this.searchCard.getHeight() / 2F);
120121
this.searchView.setMinimumHeight(CompatDisplay.dpToPixel(16));
121122
this.searchView.setImeOptions(EditorInfo.IME_ACTION_SEARCH |
122123
EditorInfo.IME_FLAG_NO_FULLSCREEN);
@@ -246,6 +247,7 @@ private void updateScreenInsets(Configuration configuration) {
246247
actionBarHeight + CompatDisplay.dpToPixel(4));
247248
this.moduleViewListBuilder.setFooterPx(
248249
bottomInset + this.searchCard.getHeight());
250+
this.searchCard.setRadius(this.searchCard.getHeight() / 2F);
249251
this.moduleViewListBuilder.updateInsets();
250252
this.actionBarBlur.invalidate();
251253
this.overScrollInsetTop = combinedBarsHeight;

0 commit comments

Comments
 (0)