Use Launcher.getLauncher(Context) instead of type-casting.

Bug: 32010039
Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
This commit is contained in:
Tony
2016-10-07 12:50:01 -07:00
parent 6e74e899d3
commit 2fd0208605
19 changed files with 29 additions and 25 deletions

View File

@@ -209,7 +209,7 @@ public class AlphabeticalAppsList {
private int mNumAppRowsInAdapter;
public AlphabeticalAppsList(Context context) {
mLauncher = (Launcher) context;
mLauncher = Launcher.getLauncher(context);
mIndexer = new AlphabeticIndexCompat(context);
mAppNameComparator = new AppNameComparator(context);
}