AppAdapter.java 文件源码

java
阅读 39 收藏 0 点赞 0 评论 0

项目:firefox-tv 作者:
public AppAdapter(Context context, ActivityInfo[] infoArray, ActivityInfo store) {
    final List<App> apps = new ArrayList<>(infoArray.length);

    for (ActivityInfo info : infoArray) {
        apps.add(new App(context, info));
    }

    Collections.sort(apps, new Comparator<App>() {
        @Override
        public int compare(App app1, App app2) {
            return app1.getLabel().compareTo(app2.getLabel());
        }
    });

    this.apps = apps;
    this.store = store != null ? new App(context, store) : null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号