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

Commit 03614f3f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Move category refresh call into a separeate method."

parents 70632e8c d2d3e2cc
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -377,13 +377,19 @@ public class SettingsDrawerActivity extends Activity {
                    ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED
                    : PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
                    PackageManager.DONT_KILL_APP);
        }
    }

    /**
     * Updates dashboard categories. Only necessary to call this after setTileEnabled
     */
    public void updateCategories() {
        if (isDashboardFeatureEnabled()) {
            new CategoriesUpdateTask().execute();
        } else {
            new CategoriesUpdater().execute();
        }
    }
    }

    public String getSettingPkg() {
        return TileUtils.SETTING_PKG;