|
|
|
@ -99,7 +99,7 @@ public class GTaskASyncTask extends AsyncTask<Void, String, Integer> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onProgressUpdate(String... progress) { // 显示同步进行中的通知
|
|
|
|
|
protected void onProgressUpdate(String... progress) { // 显示同步进行中的通知1
|
|
|
|
|
showNotification(R.string.ticker_syncing, progress[0]);// 如果mContext是GTaskSyncService的实例,则通过它发送广播,广播的内容是progress数组的第一个元素
|
|
|
|
|
if (mContext instanceof GTaskSyncService) {
|
|
|
|
|
((GTaskSyncService) mContext).sendBroadcast(progress[0]);
|
|
|
|
|