use of org.qii.weiciyuan.othercomponent.WifiAutoDownloadPictureRunnable in project weiciyuan by qii.
the class FriendsTimeLineFragment method startDownloadingOtherPicturesOnWifiNetworkEnvironment.
private void startDownloadingOtherPicturesOnWifiNetworkEnvironment() {
if (backgroundWifiDownloadPicThread == null && Utility.isWifi(getActivity()) && SettingUtility.getEnableBigPic() && SettingUtility.isWifiAutoDownloadPic()) {
final int position = getListView().getFirstVisiblePosition();
int listVewOrientation = ((VelocityListView) getListView()).getTowardsOrientation();
WifiAutoDownloadPictureRunnable runnable = new WifiAutoDownloadPictureRunnable(getList(), position, listVewOrientation);
backgroundWifiDownloadPicThread = new Thread(runnable);
backgroundWifiDownloadPicThread.start();
AppLogger.i("WifiAutoDownloadPictureRunnable startDownloadingOtherPicturesOnWifiNetworkEnvironment");
}
}
Aggregations