diff --git a/VERSION b/VERSION index 7dea76ed..9084fa2f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.1 +1.1.0 diff --git a/app/build.gradle b/app/build.gradle index f09859fb..05e1d905 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "gr.thmmy.mthmmy" minSdkVersion 19 targetSdkVersion 25 - versionCode 2 - versionName "1.0.1" + versionCode 3 + versionName "1.1.0" archivesBaseName = "mTHMMY-v$versionName" } diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java index c81c98ec..8d844e67 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java @@ -272,7 +272,7 @@ public class DownloadsActivity extends BaseActivity implements DownloadsAdapter. rows.select("div.smalltext:not(:has(a))").text(), rows.select("span:not(:has(a))").first().text(), false, - rows.select("span:has(a)").first().html())); + rows.select("span:has(a)").first().text())); } } } diff --git a/app/src/main/java/gr/thmmy/mthmmy/receiver/Receiver.java b/app/src/main/java/gr/thmmy/mthmmy/receiver/Receiver.java index 42a867ea..3f76766e 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/receiver/Receiver.java +++ b/app/src/main/java/gr/thmmy/mthmmy/receiver/Receiver.java @@ -16,6 +16,7 @@ import java.io.File; import gr.thmmy.mthmmy.R; import mthmmy.utils.Report; +import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK; import static gr.thmmy.mthmmy.services.DownloadService.ACTION_DOWNLOAD; import static gr.thmmy.mthmmy.services.DownloadService.COMPLETED; import static gr.thmmy.mthmmy.services.DownloadService.EXTRA_DOWNLOAD_ID; @@ -61,22 +62,19 @@ public class Receiver extends BroadcastReceiver { File file = new File(SAVE_DIR, fileName); if (file.exists()) { -// String type = "application/" + extension; - String type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); + String type = MimeTypeMap.getSingleton().getMimeTypeFromExtension( + MimeTypeMap.getFileExtensionFromUrl(file.getAbsolutePath())); - Uri pathUri = Uri.fromFile(file); - Intent chooserIntent = new Intent(Intent.ACTION_VIEW); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - Intent chooser = Intent.createChooser(chooserIntent, "Open With..."); - intent.setDataAndType(pathUri, type); + Intent chooser = new Intent(); + chooser.setAction(android.content.Intent.ACTION_VIEW); + chooser.setDataAndType(Uri.fromFile(file), type); + chooser.setFlags(FLAG_ACTIVITY_NEW_TASK); + chooser.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, chooser, PendingIntent.FLAG_CANCEL_CURRENT); builder.setContentIntent(pendingIntent); - } - else - Report.w(TAG,"File doesn't exist."); - - + } else + Report.w(TAG, "File doesn't exist."); } Notification notification = builder.build(); notificationManager.notify(id, notification); diff --git a/app/src/main/res/drawable-hdpi/ic_remove_circle.png b/app/src/main/res/drawable-hdpi/ic_remove_circle.png index 10ab64f6..e4cc8579 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_remove_circle.png and b/app/src/main/res/drawable-hdpi/ic_remove_circle.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_remove_circle.png b/app/src/main/res/drawable-mdpi/ic_remove_circle.png index e4cc8579..a8470e61 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_remove_circle.png and b/app/src/main/res/drawable-mdpi/ic_remove_circle.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_remove_circle.png b/app/src/main/res/drawable-xhdpi/ic_remove_circle.png index 505d8b3a..c8ef34d2 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_remove_circle.png and b/app/src/main/res/drawable-xhdpi/ic_remove_circle.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_remove_circle.png b/app/src/main/res/drawable-xxhdpi/ic_remove_circle.png index 3f94b296..505d8b3a 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_remove_circle.png and b/app/src/main/res/drawable-xxhdpi/ic_remove_circle.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_remove_circle.png b/app/src/main/res/drawable-xxxhdpi/ic_remove_circle.png index 2f59367e..5bfad8b3 100644 Binary files a/app/src/main/res/drawable-xxxhdpi/ic_remove_circle.png and b/app/src/main/res/drawable-xxxhdpi/ic_remove_circle.png differ diff --git a/app/src/main/res/layout/activity_bookmark_row.xml b/app/src/main/res/layout/activity_bookmark_row.xml index 6b02728b..a5245a79 100644 --- a/app/src/main/res/layout/activity_bookmark_row.xml +++ b/app/src/main/res/layout/activity_bookmark_row.xml @@ -4,14 +4,15 @@ android:id="@+id/bookmark_row" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginTop="4dp" android:background="?attr/selectableItemBackground" android:clickable="true" android:focusable="true" + android:gravity="center_vertical" android:orientation="horizontal" + android:paddingBottom="6dp" android:paddingEnd="16dp" - android:paddingStart="16dp"> + android:paddingStart="16dp" + android:paddingTop="6dp">