1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-26 01:38:07 +00:00

Prevent scrolling

This commit is contained in:
M66B 2018-02-01 14:42:56 +01:00
parent 8d6da69180
commit fbf4d9ea46

View file

@ -283,8 +283,10 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
// Application list
RecyclerView rvApplication = findViewById(R.id.rvApplication);
rvApplication.setHasFixedSize(true);
rvApplication.setLayoutManager(new LinearLayoutManager(this));
rvApplication.setHasFixedSize(false);
LinearLayoutManager llm = new LinearLayoutManager(this);
llm.setAutoMeasureEnabled(true);
rvApplication.setLayoutManager(llm);
adapter = new AdapterRule(this);
rvApplication.setAdapter(adapter);