Merge \"added null check in doInBackground and if null, properly intializes variables.\" into nyc-dev

am: 07a375186e

Change-Id: Icd7c52967c634dbdbef55166523039f4004e4d9a
This commit is contained in:
Richard Ho
2016-06-15 21:14:24 +00:00
committed by android-build-merger

View File

@@ -325,6 +325,13 @@ public class SettingsDrawerActivity extends Activity {
return TileUtils.getCategories(SettingsDrawerActivity.this, sTileCache);
}
@Override
protected void onPreExecute() {
if (sConfigTracker == null || sTileCache == null) {
getDashboardCategories();
}
}
@Override
protected void onPostExecute(List<DashboardCategory> dashboardCategories) {
for (int i = 0; i < dashboardCategories.size(); i++) {