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

Commit 0f0f5414 authored by Richard Ho's avatar Richard Ho
Browse files

added null check in doInBackground and if null, properly intializes

variables

Bug:29234237
Change-Id: I1d65b1a232c71efdd11a917769aec5044867a085
parent 7fbaf2a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -319,6 +319,9 @@ public class SettingsDrawerActivity extends Activity {
    private class CategoriesUpdater extends AsyncTask<Void, Void, List<DashboardCategory>> {
        @Override
        protected List<DashboardCategory> doInBackground(Void... params) {
            if (sConfigTracker == null || sTileCache == null) {
                getDashboardCategories();
            }
            if (sConfigTracker.applyNewConfig(getResources())) {
                sTileCache.clear();
            }