Translation support gives much more possibilities for bugs, isn't it wonderful?
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount
|
||||
package de.schwardtnet.alienblaster;
|
||||
package org.enigmagame.enigma;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
@@ -306,9 +306,9 @@ class DataDownloader extends Thread
|
||||
out.write(buf, 0, len);
|
||||
len = stream.read(buf);
|
||||
|
||||
String percent = "";
|
||||
float percent = 0.0f;
|
||||
if( totalLen > 0 )
|
||||
percent = String.valueOf(stream.getBytesRead() * 100 / totalLen) + "%: ";
|
||||
percent = stream.getBytesRead() * 100.0f / totalLen;
|
||||
Status.setText( res.getString(R.string.dl_progress, percent, path) );
|
||||
}
|
||||
out.flush();
|
||||
@@ -370,9 +370,9 @@ class DataDownloader extends Thread
|
||||
return false;
|
||||
}
|
||||
|
||||
String percent = "";
|
||||
float percent = 0.0f;
|
||||
if( totalLen > 0 )
|
||||
percent = String.valueOf(stream.getBytesRead() * 100 / totalLen) + "%: ";
|
||||
percent = stream.getBytesRead() * 100.0f / totalLen;
|
||||
Status.setText( res.getString(R.string.dl_progress, percent, path) );
|
||||
|
||||
try {
|
||||
@@ -383,9 +383,9 @@ class DataDownloader extends Thread
|
||||
out.write(buf, 0, len);
|
||||
len = zip.read(buf);
|
||||
|
||||
percent = "";
|
||||
percent = 0.0f;
|
||||
if( totalLen > 0 )
|
||||
percent = String.valueOf(stream.getBytesRead() * 100 / totalLen) + "%: ";
|
||||
percent = stream.getBytesRead() * 100.0f / totalLen;
|
||||
Status.setText( res.getString(R.string.dl_progress, percent, path) );
|
||||
}
|
||||
out.flush();
|
||||
|
||||
Reference in New Issue
Block a user