Removing some unused code from All-Apps

Bug: 229860311
Test: Verified on device
Change-Id: I72394fb421679688f87cdbf725859ec35529a59e
This commit is contained in:
Sunny Goyal
2022-04-20 09:51:48 -07:00
parent 1a93004398
commit 3946ecd441
7 changed files with 95 additions and 107 deletions

View File

@@ -45,6 +45,7 @@ import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.core.graphics.ColorUtils;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.AdapterDataObserver;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.DeviceProfile.DeviceProfileListenable;
@@ -727,6 +728,12 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
: new BaseAdapterProvider[]{mMainAdapterProvider};
adapter = getAdapter(mAppsList, adapterProviders);
adapter.registerAdapterDataObserver(new AdapterDataObserver() {
@Override
public void onChanged() {
Log.e("Hello", "On changed", new Exception());
}
});
mAppsList.setAdapter(adapter);
mLayoutManager = adapter.getLayoutManager();
}