mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-26 01:38:07 +00:00
Prevent scrolling
This commit is contained in:
parent
8d6da69180
commit
fbf4d9ea46
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue