mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Remove redundant casts from findViewById.
This commit is contained in:
@@ -72,11 +72,10 @@ public class EmojiDrawer extends LinearLayout {
|
||||
}
|
||||
|
||||
private void initializeResources(View v) {
|
||||
this.pager = (ViewPager) v.findViewById(R.id.emoji_pager);
|
||||
this.strip = (PagerSlidingTabStrip) v.findViewById(R.id.tabs);
|
||||
this.pager = v.findViewById(R.id.emoji_pager);
|
||||
this.strip = v.findViewById(R.id.tabs);
|
||||
|
||||
RepeatableImageKey backspace =
|
||||
(RepeatableImageKey) v.findViewById(R.id.backspace);
|
||||
RepeatableImageKey backspace = v.findViewById(R.id.backspace);
|
||||
backspace.setOnKeyEventListener(() -> {
|
||||
if (listener != null) listener.onKeyEvent(DELETE_KEY_EVENT);
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@ public class EmojiPageView extends FrameLayout {
|
||||
super(context, attrs, defStyleAttr);
|
||||
View view = LayoutInflater.from(getContext())
|
||||
.inflate(R.layout.emoji_grid_layout, this, true);
|
||||
grid = (GridView) view.findViewById(R.id.emoji);
|
||||
grid = view.findViewById(R.id.emoji);
|
||||
grid.setColumnWidth(getResources()
|
||||
.getDimensionPixelSize(R.dimen.emoji_drawer_size) + 2 *
|
||||
getResources().getDimensionPixelSize(
|
||||
|
||||
Reference in New Issue
Block a user