diff --git a/README.md b/README.md index 31d8491a..68a670ba 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,12 @@ Downloads Changelog --------- +Cambios en v1.128: +* Pequeños arreglos. + +Changes on v1.128: +* Small Fixes. + Cambios en v1.126: * Fix varios servidores. diff --git a/app/build.gradle b/app/build.gradle index b1ebc27d..f97ca19c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,8 +5,8 @@ android { buildToolsVersion '29.0.3' defaultConfig { applicationId "ar.rulosoft.mimanganu" - versionCode 127 - versionName "1.127" + versionCode 128 + versionName "1.128" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" minSdkVersion 15 } @@ -83,7 +83,7 @@ dependencies { implementation 'com.github.sevar83:indeterminate-checkbox:1.0.5@aar' implementation group: 'org.brotli', name: 'dec', version: '0.1.2' //implementation group: 'com.github.junrar', name: 'junrar', version: '4.0.0' - implementation 'com.github.raulhaag:RapidDecoder:0.3.0ax' + implementation 'com.github.raulhaag:RapidDecoder:0.3.1Ax' implementation 'com.squareup.okhttp3:okhttp:3.9.1' //on 3.10.0 are deprecated some ciphers implementation 'com.squareup.okio:okio:1.15.0' implementation 'com.squareup.duktape:duktape-android:1.2.0'/* v 1.2.0 need 4+mb extra*/ diff --git a/app/src/main/java/ar/rulosoft/mimanganu/MainActivity.java b/app/src/main/java/ar/rulosoft/mimanganu/MainActivity.java index 6e0f84ed..44d9247c 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/MainActivity.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/MainActivity.java @@ -90,6 +90,7 @@ protected void onCreate(Bundle savedInstanceState) { @Override protected void onNewIntent(Intent intent) { + super.onNewIntent(intent); int mangaIdFromNotification = intent.getIntExtra("manga_id", -1); Log.i("MainActivity", "mangaID: " + mangaIdFromNotification); diff --git a/app/src/main/java/ar/rulosoft/mimanganu/servers/KissManga.java b/app/src/main/java/ar/rulosoft/mimanganu/servers/KissManga.java index 29f442f8..682b3399 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/servers/KissManga.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/servers/KissManga.java @@ -174,7 +174,8 @@ public synchronized void chapterInit(Chapter chapter) throws Exception { String ca = getNavigatorAndFlushParameters().get(HOST + "/Scripts/ca.js"); String lo = getNavigatorAndFlushParameters().get(HOST + "/Scripts/lo.js"); - try (Duktape duktape = Duktape.create()) { + try { + Duktape duktape = Duktape.create(); duktape.evaluate(ca); duktape.evaluate(lo); Pattern p = Pattern.compile("javascript\">(.+?)<", Pattern.DOTALL); @@ -195,6 +196,7 @@ public synchronized void chapterInit(Chapter chapter) throws Exception { sb.append("|").append(image); } chapter.setExtra(sb.toString()); + } catch (Exception ignored) { } chapter.setPages(pages); } diff --git a/app/src/main/java/ar/rulosoft/mimanganu/services/DownloadPoolService.java b/app/src/main/java/ar/rulosoft/mimanganu/services/DownloadPoolService.java index a0f9b447..fc47d1fc 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/services/DownloadPoolService.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/services/DownloadPoolService.java @@ -332,9 +332,11 @@ public void onStatusChanged(ChapterDownload chapterDownload) { private void initPool() { PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); - PowerManager.WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "DPS_wakelock"); + PowerManager.WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MMN:Wakelock"); try { - wakeLock.acquire(); + if (wakeLock != null) { + wakeLock.acquire(Long.MAX_VALUE); + } } catch (Exception e) { e.printStackTrace(); } diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 4d5c4965..7b40b532 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -1,6 +1,6 @@ - Cambios en v1.126:\n\t* Fix varios servidores. + Cambios en v1.128:\n\t* Pequeños arreglos. Ajustar a Descargas Datos de diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e5c6d584..c9c9929c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,6 +1,6 @@ - Changes on v1.126:\n\t* Fix servers. + Changes on v1.128:\n\t* Small Fixes. 12 Hours 1 day 2 days diff --git a/build.gradle b/build.gradle index 8031a5ef..e0f3e2c5 100644 --- a/build.gradle +++ b/build.gradle @@ -15,8 +15,8 @@ buildscript { allprojects { repositories { + google() jcenter() maven { url "https://jitpack.io" } - google() } }