Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
v1.89
Browse files Browse the repository at this point in the history
  • Loading branch information
raulhaag committed Sep 2, 2018
1 parent 0062f0e commit b8cde19
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 18 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<String> paths) {
Expand Down
9 changes: 7 additions & 2 deletions app/src/main/java/ar/rulosoft/mimanganu/utils/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,20 @@ 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)
snackbar.getView().setBackgroundColor(MainActivity.colors[0]);
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();
}
});
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="update_message">Cambios en v1.88:\n\t* Fix TMO.\n\t* Alternativa para la actulización.\n\t* CFI solo una instancia.</string>
<string name="update_message">Cambios en v1.89:\n\t* Arreglado TMO.\n\t* Agregado "sabor" especial para fdroid.\n\t* Otros arreglos menores</string>
<string name="action_ajustar_a">Ajustar a</string>
<string name="descargas">Descargas</string>
<string name="datosde">Datos de </string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="update_message">Changes in v1.88:\n\t* Fix TMO.\n\t* App update alternative.\n\t* CFI only once a time.</string>
<string name="update_message">Changes in v1.89:\n\t* Fix TMO.\n\t* Added fdroid flavor.\n\t* Min fixes.\n\t* </string>
<string name="_12hours">12 Hours</string>
<string name="_1day">1 day</string>
<string name="_2day">2 days</string>
Expand Down

0 comments on commit b8cde19

Please sign in to comment.