Skip to content

Commit

Permalink
Move FormatterFileSize to Core
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Jul 19, 2022
1 parent 18c02ec commit 306b468
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 124 deletions.
2 changes: 1 addition & 1 deletion Core
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import com.infomaniak.drive.R
import com.infomaniak.drive.data.cache.DriveInfosController
import com.infomaniak.drive.data.models.UploadFile
import com.infomaniak.drive.utils.*
import com.infomaniak.lib.core.utils.FormatterFileSize
import com.infomaniak.lib.core.utils.UtilsUi.openUrl
import com.infomaniak.lib.core.utils.loadAvatar
import com.infomaniak.lib.core.utils.safeNavigate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import com.infomaniak.drive.ui.fileList.FileListFragment.Companion.MAX_DISPLAYED
import com.infomaniak.drive.ui.fileList.FileViewHolder
import com.infomaniak.drive.utils.Utils.ROOT_ID
import com.infomaniak.drive.views.CategoryIconView
import com.infomaniak.lib.core.utils.FormatterFileSize
import com.infomaniak.lib.core.utils.format
import io.sentry.Sentry
import kotlinx.android.synthetic.main.cardview_file_grid.view.filePreview2
Expand Down
121 changes: 0 additions & 121 deletions app/src/main/java/com/infomaniak/drive/utils/FormatterFileSize.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.infomaniak.drive.R
import com.infomaniak.drive.data.api.ApiRoutes
import com.infomaniak.drive.data.models.drive.Drive
import com.infomaniak.drive.utils.AccountUtils
import com.infomaniak.drive.utils.FormatterFileSize
import com.infomaniak.lib.core.utils.FormatterFileSize
import com.infomaniak.lib.core.utils.UtilsUi.openUrl
import kotlinx.android.synthetic.main.view_not_enough_storage.view.*

Expand Down Expand Up @@ -79,4 +79,4 @@ class NotEnoughStorageView @JvmOverloads constructor(
}
}
}
}
}

0 comments on commit 306b468

Please sign in to comment.