From 240908a7adb1cec5e49c2fae2a99604c103daa30 Mon Sep 17 00:00:00 2001 From: Jigar Sable <64949957+jigar-sable@users.noreply.github.com> Date: Thu, 1 Oct 2020 17:17:17 +0530 Subject: [PATCH] Update AppListFragment.java --- .../java/ch/arnab/simplelauncher/AppListFragment.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/SimpleLauncher/src/main/java/ch/arnab/simplelauncher/AppListFragment.java b/SimpleLauncher/src/main/java/ch/arnab/simplelauncher/AppListFragment.java index 8ac18f6..b863ee0 100644 --- a/SimpleLauncher/src/main/java/ch/arnab/simplelauncher/AppListFragment.java +++ b/SimpleLauncher/src/main/java/ch/arnab/simplelauncher/AppListFragment.java @@ -1,29 +1,21 @@ package ch.arnab.simplelauncher; - import android.os.Bundle; import android.support.v4.app.ListFragment; import android.support.v4.app.LoaderManager; import android.support.v4.content.Loader; import java.util.ArrayList; -/** - * Created by Arnab Chakraborty - */ public class AppListFragment extends ListFragment implements LoaderManager.LoaderCallbacks> { AppListAdapter mAdapter; @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); - setEmptyText("No Applications"); - mAdapter = new AppListAdapter(getActivity()); setListAdapter(mAdapter); - // till the data is loaded display a spinner setListShown(false); - // create the loader to load the apps list in background getLoaderManager().initLoader(0, null, this); } @@ -36,7 +28,6 @@ public Loader> onCreateLoader(int id, Bundle bundle) { @Override public void onLoadFinished(Loader> loader, ArrayList apps) { mAdapter.setData(apps); - if (isResumed()) { setListShown(true); } else {