Skip to content

Conversation

@hb0
Copy link
Collaborator

@hb0 hb0 commented Dec 8, 2025

Adds public API to determine which type of storage is being used (external or internal), useful for displaying storage information in UIs.

Changes:

  • Add StorageType enum with EXTERNAL and INTERNAL values
  • Add getStorageType(context) method to query current storage type
  • Extract getPrimaryExternalStorageIfAvailable() helper to avoid code duplication
  • Refactor existing methods to reuse the helper method

This ensures all storage detection logic is centralized and consistent.

Adds public API to determine which type of storage is being used
(external or internal), useful for displaying storage information in UIs.

Changes:
- Add StorageType enum with EXTERNAL and INTERNAL values
- Add getStorageType(context) method to query current storage type
- Extract getPrimaryExternalStorageIfAvailable() helper to avoid code duplication
- Refactor existing methods to reuse the helper method

This ensures all storage detection logic is centralized and consistent.
@hb0 hb0 self-assigned this Dec 8, 2025
@hb0 hb0 merged commit 862127b into main Dec 8, 2025
1 check passed
@hb0 hb0 deleted the task/LEIP-409_add-method-to-show-storage-type-used-in-UI branch December 8, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants