Skip to content

Android: Remove unused parentContext parameter from MicTranscriber constructor#119

Open
shubham0204 wants to merge 1 commit intomoonshine-ai:mainfrom
shubham0204:fix/remove-unused-activity-field
Open

Android: Remove unused parentContext parameter from MicTranscriber constructor#119
shubham0204 wants to merge 1 commit intomoonshine-ai:mainfrom
shubham0204:fix/remove-unused-activity-field

Conversation

@shubham0204
Copy link

@shubham0204 shubham0204 commented Feb 14, 2026

The member parentContext of type AppCompatActivity is not used in the implementation of MicTranscriber class.

I am integrating Moonshine ASR in SmolChat, an app built on top of llama.cpp that enables users to chat with local SLMs (GGUFs). The app uses Koin as its dependency injection framework. Currently, MicTranscriber requires an instance of AppCompatActivity in its constructor which is difficult for Koin to inject. Koin operates across the lifecycle of the application and getting the instance of the current activity is not straight-forward. Solving this problem motivated me to check the usages of parentContext in MicTranscriber.

Also, the codebase is neatly organized for different platforms/languages. Kudos to the developers!

@petewarden @keveman

The member 'parentContext' of type 'AppCompatActivity' is not used in the implementation of MicTranscriber class.
@shubham0204 shubham0204 changed the title Remove unused parentContext parameter from MicTranscriber constructor Android: Remove unused parentContext parameter from MicTranscriber constructor Feb 14, 2026
@shubham0204 shubham0204 changed the title Android: Remove unused parentContext parameter from MicTranscriber constructor Android: Remove unused parentContext parameter from MicTranscriber constructor Feb 14, 2026
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.

1 participant