0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

Fix crash on database check dialog

This commit is contained in:
timrae 2014-10-21 17:15:43 +09:00
parent e9d38ac8ca
commit 142b6daab8

View File

@ -1262,10 +1262,10 @@ public class DeckPicker extends NavigationDrawerActivity implements OnShowcaseEv
}
if (result != null && result.getBoolean()) {
String msg = "";
double shrunk = Math.round(result.getLong() / 1024.0);
long shrunk = Math.round(result.getLong() / 1024.0);
if (shrunk > 0.0) {
msg = String.format(Locale.getDefault(),
getResources().getString(R.string.check_db_acknowledge_shrunk), shrunk);
getResources().getString(R.string.check_db_acknowledge_shrunk), (int) shrunk);
} else {
msg = getResources().getString(R.string.check_db_acknowledge);
}