use of com.genonbeta.TrebleShot.io.DocumentFile in project TrebleShot by genonbeta.
the class TransactionGroupInfoDialog method calculateSpace.
public boolean calculateSpace() {
DocumentFile documentFile = FileUtils.getSavePath(getContext(), mGroup);
long freeSpace = documentFile instanceof LocalDocumentFile ? ((LocalDocumentFile) documentFile).getFile().getFreeSpace() : -1;
mDatabase.calculateTransactionSize(mGroup.groupId, getIndex());
return freeSpace == -1 || freeSpace >= getIndex().incoming;
}
Aggregations