Fix Weird floating "add language" item

- Base theme has android:clipToPadding=false attribute. It let user
UI draw under navigation bar but also cause this problem. Add
android:clipToPadding=true in layout to fix the problem.

Fixes: 142108980
Test: manual
Change-Id: Ibe60b348a3c7c01d9786612ceac23a47a78a208a
This commit is contained in:
Raff Tsai
2019-11-04 17:34:02 +08:00
parent 42f69520c0
commit 29c15273b5
4 changed files with 5 additions and 23 deletions

View File

@@ -83,7 +83,7 @@ public abstract class BaseTimeZonePicker extends InstrumentedFragment
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.time_zone_items_list, container, false);
final View view = inflater.inflate(R.layout.recycler_view, container, false);
mRecyclerView = view.findViewById(R.id.recycler_view);
mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext(),
LinearLayoutManager.VERTICAL, /* reverseLayout */ false));