Skip to content

Conversation

@Prinuel
Copy link
Contributor

@Prinuel Prinuel commented Apr 12, 2025

Fixes #5996 : Fix one of android studio warnings

What changes did you make and why?

  1. i removed three unused import directives: - import android.annotation.SuppressLint, - import androidx.lifecycle.Lifecycle and - import androidx.lifecycle.repeatOnLifecycle; This helps declutter the code, and reduce unused code.
  2. converted to two occureneces of the call to the method object: FilePicker.HandleActivityResult, in contributionController.handleActivityResultWithCallback, to use lamda functions. This makes the code more compact, and readable.

Tests performed (required)

Tested the Debug Beta on Android (Samsung Galaxy A21s), Api level 31

…le, : Eliminated three unused imports, and changed calls to object: FilePicker.HandleActivityResult to use lamda
@github-actions
Copy link

✅ Generated APK variants!

@nicolas-raoul nicolas-raoul merged commit 4bacac1 into commons-app:main Apr 13, 2025
1 check passed
sonalyadav1 pushed a commit to sonalyadav1/apps-android-commons that referenced this pull request May 22, 2025
…le, : Eliminated three unused imports, and changed calls to object: FilePicker.HandleActivityResult to use lamda (commons-app#6283)

Co-authored-by: bethel-m <[email protected]>
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.

Fix one of the Android Studio warnings

3 participants