mirror of
https://github.com/stom79/exodus-android-app
synced 2025-01-31 10:05:01 +01:00
refactor: rename function
This commit is contained in:
parent
c05baa4a04
commit
465c8c39f6
@ -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<PackageInfo> 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<PackageInfo> installedPackages = packageManager.getInstalledPackages(PackageManager.GET_PERMISSIONS);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user