修改Queue的TAG为static fianl 对象(cancelQueue中判断的条件为TAG为统一对象才可取消)
This commit is contained in:
@ -5,6 +5,7 @@ import android.support.annotation.Nullable;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
|
||||
import com.gh.base.AppController;
|
||||
import com.gh.base.BaseFragment;
|
||||
import com.gh.common.util.DownloadItemUtils;
|
||||
import com.gh.download.DataWatcher;
|
||||
@ -21,6 +22,8 @@ import com.gh.gamecenter.eventbus.EBReuse;
|
||||
*/
|
||||
public class InstallFragment extends BaseFragment {
|
||||
|
||||
public static final String TAG = InstallFragment.class.getSimpleName();
|
||||
|
||||
private RecyclerView fm_install_rv_show;
|
||||
private LinearLayoutManager linearLayoutManager;
|
||||
private InstallFragmentAdapter adapter;
|
||||
@ -112,6 +115,7 @@ public class InstallFragment extends BaseFragment {
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
AppController.canclePendingRequests(TAG);
|
||||
fm_install_rv_show = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user