mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
only enabled for self user
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
8792e04ce2
commit
dfe2471906
1 changed files with 8 additions and 3 deletions
|
|
@ -191,9 +191,14 @@ public class ContributionsListFragment extends CommonsDaggerSupportFragment impl
|
|||
|
||||
initAdapter();
|
||||
|
||||
binding.swipeRefreshLayout.setOnRefreshListener(() -> {
|
||||
contributionsListPresenter.refreshList(binding.swipeRefreshLayout);
|
||||
});
|
||||
// pull down to refresh only enabled for self user.
|
||||
if(Objects.equals(sessionManager.getUserName(), userName)){
|
||||
binding.swipeRefreshLayout.setOnRefreshListener(() -> {
|
||||
contributionsListPresenter.refreshList(binding.swipeRefreshLayout);
|
||||
});
|
||||
} else {
|
||||
binding.swipeRefreshLayout.setEnabled(false);
|
||||
}
|
||||
|
||||
return binding.getRoot();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue