From b8cde19cdbf42949d35f8d50136904d6c33185b8 Mon Sep 17 00:00:00 2001 From: raulhaag Date: Sun, 2 Sep 2018 19:55:40 -0300 Subject: [PATCH] v1.89 --- README.md | 11 ++++++++ app/build.gradle | 4 +-- .../readers/continuos/ReaderContinuous.java | 26 ++++++++++--------- .../ar/rulosoft/mimanganu/utils/Util.java | 9 +++++-- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 6 files changed, 36 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 6e07c9cb..57cb934f 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,17 @@ Downloads Changelog --------- + +Cambios en v1.89: +* Arreglado TMO. +* Agregado "sabor" especial para fdroid. +* Otros arreglos menores. + +Changes in v1.89: +* Fix TMO. +* Added fdroid flavor. +* Min fixes. + Cambios en v1.88: * Fix TMO. * Alternativa para la actulizaciĆ³n. diff --git a/app/build.gradle b/app/build.gradle index 0186e7b7..b501c3b2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,8 +5,8 @@ android { buildToolsVersion '27.0.3' defaultConfig { applicationId "ar.rulosoft.mimanganu" - versionCode 88 - versionName "1.88" + versionCode 89 + versionName "1.89" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } signingConfigs { diff --git a/app/src/main/java/ar/rulosoft/mimanganu/componentes/readers/continuos/ReaderContinuous.java b/app/src/main/java/ar/rulosoft/mimanganu/componentes/readers/continuos/ReaderContinuous.java index 1a9a6703..4485f8a0 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/componentes/readers/continuos/ReaderContinuous.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/componentes/readers/continuos/ReaderContinuous.java @@ -101,7 +101,9 @@ public void setBlueFilter(float bf) { @Override public int getPages() { - return pages.size(); + if (pages != null) + return pages.size(); + return 0; } @Override @@ -272,18 +274,18 @@ public void run() { @Override protected void onDraw(Canvas canvas) { - if (toDraw.size() > 0) { - for (Page.Segment s : toDraw) { - s.draw(canvas); - } - cache = canvas; - } else { - generateDrawPool(); - if (cache != null) - canvas = cache; + if (toDraw.size() > 0) { + for (Page.Segment s : toDraw) { + s.draw(canvas); } - preparing = false; - drawing = false; + cache = canvas; + } else { + generateDrawPool(); + if (cache != null) + canvas = cache; + } + preparing = false; + drawing = false; } public void setPaths(List paths) { diff --git a/app/src/main/java/ar/rulosoft/mimanganu/utils/Util.java b/app/src/main/java/ar/rulosoft/mimanganu/utils/Util.java index bbe5e4dc..54478db2 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/utils/Util.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/utils/Util.java @@ -144,7 +144,7 @@ public void showSlowSnackBar(String message, View view, Context context) { showTimeSnackBar(message, view, context, Snackbar.LENGTH_LONG); } - public void showTimeSnackBar(String message, View view, Context context, int duration) { + public void showTimeSnackBar(final String message, View view, final Context context, final int duration) { if (view != null) { Snackbar snackbar = Snackbar.make(view, message, duration); if (MainActivity.colors != null) @@ -152,7 +152,12 @@ public void showTimeSnackBar(String message, View view, Context context, int dur snackbar.show(); } else { if (context != null) { - Toast.makeText(context, message, duration).show(); + new Handler(Looper.getMainLooper()).post(new Runnable() { + @Override + public void run() { + Toast.makeText(context, message, duration).show(); + } + }); } } } diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 0e7cae89..c0c9f9d7 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.88:\n\t* Fix TMO.\n\t* Alternativa para la actulizaciĆ³n.\n\t* CFI solo una instancia. + Cambios en v1.89:\n\t* Arreglado TMO.\n\t* Agregado "sabor" especial para fdroid.\n\t* Otros arreglos menores Ajustar a Descargas Datos de diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index cd06bdf1..5be901e0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,6 +1,6 @@ - Changes in v1.88:\n\t* Fix TMO.\n\t* App update alternative.\n\t* CFI only once a time. + Changes in v1.89:\n\t* Fix TMO.\n\t* Added fdroid flavor.\n\t* Min fixes.\n\t* 12 Hours 1 day 2 days