修复点击状态栏不显示下载界面
This commit is contained in:
1 parent
7cfd910122
commit
15d6e4f87c
10 files changed
+12
-14
No files matched your search
+2
-2
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.hippo.ehviewer"
|
||||
android:versionCode="5"
|
||||
android:versionName="0.3.0" >
|
||||
android:versionCode="6"
|
||||
android:versionName="0.3.1" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.hippo.ehviewer"
|
||||
android:versionCode="5"
|
||||
android:versionName="0.3.0" >
|
||||
android:versionCode="6"
|
||||
android:versionName="0.3.1" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,6 @@
|
||||
Version 0.3.1 (2014-03-14)
|
||||
* 修正有时点击通知栏无法进入下载界面
|
||||
|
||||
Version 0.3.0 (2014-03-14)
|
||||
* 完成搜索标签功能
|
||||
* 初步完成下载功能
|
||||
|
||||
@@ -39,16 +39,11 @@ public class DownloadService extends Service {
|
||||
mNotifyManager = (NotificationManager)
|
||||
getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
mBuilder = new NotificationCompat.Builder(this);
|
||||
Intent resultIntent = new Intent(this, DownloadActivity.class);
|
||||
resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
PendingIntent resultPendingIntent =
|
||||
PendingIntent.getActivity(
|
||||
this,
|
||||
0,
|
||||
resultIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT
|
||||
);
|
||||
mBuilder.setSmallIcon(R.drawable.ic_launcher).setContentIntent(resultPendingIntent);
|
||||
mBuilder.setSmallIcon(R.drawable.ic_launcher);
|
||||
|
||||
Intent intent = new Intent(DownloadService.this,DownloadActivity.class);
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(DownloadService.this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
mBuilder.setContentIntent(pendingIntent);
|
||||
|
||||
EhClient.DownloadMangaManager.setDownloadService(this);
|
||||
EhClient.DownloadMangaManager.setOnDownloadMangaListener(new EhClient.OnDownloadMangaListener() {
|
||||
|
||||
Reference in new issue
Block a user