From 465c8c39f6570234e8bab4f7f6e77324552fbd9d Mon Sep 17 00:00:00 2001 From: Benjamin Orsini Date: Thu, 6 Jun 2019 20:56:16 +0200 Subject: [PATCH] refactor: rename function --- .../exodusprivacy/adapters/ApplicationListAdapter.java | 4 ++-- .../exodusprivacy/fragments/AppListFragment.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java index 38faef3..0a13d6a 100644 --- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java +++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java @@ -67,7 +67,7 @@ public class ApplicationListAdapter extends RecyclerView.Adapter { applicationViewModels = new ArrayList<>(); onAppClickListener = listener; this.context = context; - setPackageManager(manager); + displayApplicationList(manager); } private void setInstalledPackages(List installedPackages) { @@ -186,7 +186,7 @@ public class ApplicationListAdapter extends RecyclerView.Adapter { return applicationViewModels.size(); } - public void setPackageManager(PackageManager manager) { + public void displayApplicationList(PackageManager manager) { packageManager = manager; if(packageManager != null) { List installedPackages = packageManager.getInstalledPackages(PackageManager.GET_PERMISSIONS); diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/AppListFragment.java b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/AppListFragment.java index fc77a82..9bae039 100644 --- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/AppListFragment.java +++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/AppListFragment.java @@ -117,7 +117,7 @@ public class AppListFragment extends Fragment { applistBinding.layoutProgress.setVisibility(View.GONE); applistBinding.swipeRefresh.setRefreshing(false); if(packageManager != null && applistBinding.appList.getAdapter() != null) { - ((ApplicationListAdapter) applistBinding.appList.getAdapter()).setPackageManager(packageManager); + ((ApplicationListAdapter) applistBinding.appList.getAdapter()).displayApplicationList(packageManager); } } }