修复快速切换,暂停、恢复功能时,概率性出现的重新下载问题,添加onPre()回调,onPre()用于请求地址之前执行界面UI更新操作

This commit is contained in:
AriaLyy
2017-06-02 13:43:07 +08:00
parent 56d073d14e
commit cde2ed47f1
24 changed files with 144 additions and 65 deletions

View File

@@ -30,7 +30,7 @@ import com.arialyy.simple.R;
public class SimpleNotification {
private static final String DOWNLOAD_URL =
"http://static.gaoshouyou.com/d/6e/e5/ff6ecaaf45e532e6d07747af82357472.apk";
"http://static.gaoshouyou.com/d/cb/38/f0cb1b2c57388fe14342eecd64bbae65.apk";
private NotificationManager mManager;
private Context mContext;
@@ -58,7 +58,7 @@ public class SimpleNotification {
.load(DOWNLOAD_URL)
.setDownloadName("notification_test.apk")
.setDownloadPath(
Environment.getExternalStorageDirectory() + "/Download/notification_test.apk")
Environment.getExternalStorageDirectory() + "/Download/消灭星星.apk")
.start();
}