Source:
public void performTask(Bundle extras, Object companion) { mListenerCompanion = companion; if (extras == null) { AppLog.e(T.STATS, "StatsService was killed and restarted with a null intent."); stopRefresh(); return; } final long siteId = extras.getLong(StatsService.ARG_BLOG_ID, 0); if (siteId == 0) { AppLog.e(T.STATS, "StatsService was started with siteid == 0"); return; } int[] sectionFromIntent = extras.getIntArray(StatsService.ARG_SECTION); if (sectionFromIntent == null || sectionFromIntent.length == 0) { AppLog.e(T.STATS, "StatsService was started without valid sections info"); return; } final StatsTimeframe period; if (extras.containsKey(StatsService.ARG_PERIOD)) { period = (StatsTimeframe) extras.getSerializable(StatsService.ARG_PERIOD); } else { period = StatsTimeframe.DAY; } final String requestedDate; if (extras.getString(StatsService.ARG_DATE) == null) { AppLog.w(T.STATS, "StatsService is started with a NULL date on this blogID - " + siteId + ". Using current date."); SiteModel site = mSiteStore.getSiteBySiteId(siteId); requestedDate = StatsUtils.getCurrentDateTZ(site); } else { requestedDate = extras.getString(StatsService.ARG_DATE); } final int maxResultsRequested = extras.getInt(StatsService.ARG_MAX_RESULTS, DEFAULT_NUMBER_OF_RESULTS); final int pageRequested = extras.getInt(StatsService.ARG_PAGE_REQUESTED, -1); for (int i = 0; i < sectionFromIntent.length; i++) { final StatsService.StatsEndpointsEnum currentSectionsToUpdate = StatsService.StatsEndpointsEnum.values()[sectionFromIntent[i]]; mSingleThreadNetworkHandler.submit(new Thread() { @Override public void run() { startTasks(siteId, period, requestedDate, currentSectionsToUpdate, maxResultsRequested, pageRequested); } }); } return; }

Target:
public void performTask(Bundle extras, Object companion) { mListenerCompanion = companion; if (extras == null) { AppLog.e(T.STATS, "StatsService was killed and restarted with a null intent."); stopRefresh(); return; } final long siteId = extras.getLong(StatsService.ARG_BLOG_ID, 0); if (siteId == 0) { AppLog.e(T.STATS, "StatsService was started with siteid == 0"); return; } int[] sectionFromIntent = extras.getIntArray(StatsService.ARG_SECTION); if (sectionFromIntent == null || sectionFromIntent.length == 0) { AppLog.e(T.STATS, "StatsService was started without valid sections info"); return; } final StatsTimeframe period; if (extras.containsKey(StatsService.ARG_PERIOD)) { period = StatsTimeframe.values()[extras.getInt(StatsService.ARG_PERIOD)]; } else { period = StatsTimeframe.DAY; } final String requestedDate; if (extras.getString(StatsService.ARG_DATE) == null) { AppLog.w(T.STATS, "StatsService is started with a NULL date on this blogID - " + siteId + ". Using current date."); SiteModel site = mSiteStore.getSiteBySiteId(siteId); requestedDate = StatsUtils.getCurrentDateTZ(site); } else { requestedDate = extras.getString(StatsService.ARG_DATE); } final int maxResultsRequested = extras.getInt(StatsService.ARG_MAX_RESULTS, DEFAULT_NUMBER_OF_RESULTS); final int pageRequested = extras.getInt(StatsService.ARG_PAGE_REQUESTED, -1); for (int i = 0; i < sectionFromIntent.length; i++) { final StatsServiceLogic.StatsEndpointsEnum currentSectionsToUpdate = StatsServiceLogic.StatsEndpointsEnum.values()[sectionFromIntent[i]]; mSingleThreadNetworkHandler.submit(new Thread() { @Override public void run() { startTasks(siteId, period, requestedDate, currentSectionsToUpdate, maxResultsRequested, pageRequested); } }); } }