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:
parent
e9d38ac8ca
commit
142b6daab8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user