Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45c891b7 authored by Fan Zhang's avatar Fan Zhang
Browse files

Do not throw exception when there is no tile for category.

Bug: 31781480
Test: instrumentation test
Change-Id: Ib278b2967514afda357774829964cfb59a676b20
parent 7ce38313
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -59,11 +59,7 @@ public class CategoryManager {
    public synchronized DashboardCategory getTilesByCategory(Context context, String categoryKey) {
        tryInitCategories(context);

        final DashboardCategory category = mCategoryByKeyMap.get(categoryKey);
        if (category == null) {
            throw new IllegalStateException("Can't find category with key " + categoryKey);
        }
        return category;
        return mCategoryByKeyMap.get(categoryKey);
    }

    public synchronized List<DashboardCategory> getCategories(Context context) {