Search in sources :

Example 1 with WifiAutoDownloadPictureRunnable

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");
    }
}
Also used : VelocityListView(org.qii.weiciyuan.support.lib.VelocityListView) WifiAutoDownloadPictureRunnable(org.qii.weiciyuan.othercomponent.WifiAutoDownloadPictureRunnable)

Aggregations

WifiAutoDownloadPictureRunnable (org.qii.weiciyuan.othercomponent.WifiAutoDownloadPictureRunnable)1 VelocityListView (org.qii.weiciyuan.support.lib.VelocityListView)1