Search in sources :

Example 1 with FileSizeFormatter

use of com.ichi2.anki.dialogs.DeckPickerNoSpaceToDowngradeDialog.FileSizeFormatter in project Anki-Android by ankidroid.

the class DeckPicker method displayDowngradeFailedNoSpace.

public void displayDowngradeFailedNoSpace() {
    Timber.w("Not enough space to downgrade");
    FileSizeFormatter formatter = new FileSizeFormatter(this);
    String collectionPath = CollectionHelper.getCollectionPath(this);
    File collectionFile = new File(collectionPath);
    showDialogFragment(DeckPickerNoSpaceToDowngradeDialog.newInstance(formatter, collectionFile));
}
Also used : File(java.io.File) FileSizeFormatter(com.ichi2.anki.dialogs.DeckPickerNoSpaceToDowngradeDialog.FileSizeFormatter)

Aggregations

FileSizeFormatter (com.ichi2.anki.dialogs.DeckPickerNoSpaceToDowngradeDialog.FileSizeFormatter)1 File (java.io.File)1