97,928 questions
- Bountied 1
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
46
views
How to make android studio use class imports for inline classes
I have this interface:
@Immutable
sealed interface TestUiAction{
data object OnClick
}
When I try to call it in android studio by clicking on auto suggestion:
It imports the class like this:
...
2
votes
2
answers
59
views
How to prevent paging refresh flicker in Android Jetpack Compose?
I have a compose screen for a search results page. I want to show a loading indicator when the search is in progress, but on subsequent searches I want to keep the old search results under the loading ...
0
votes
0
answers
31
views
Gradle in vscode not working (org.gradle.api.plugins.internal.DefaultDecoratedConvention)
I have a problem with Gradle in vscode, when trying to build a project, it throws an exception: "org.gradle.api.plugins.internal.DefaultDecoratedConvention". At the same time, the manually ...
0
votes
0
answers
54
views
What is this badge on my notification and where do I modify it
You would spot a tiny flutter logo next to the caller avatar/profile. I've seen the exact same bit in every calling app and it's always the app icon. Here, however, despite changing the app icon ...
0
votes
0
answers
40
views
How to Hide the Preview View when displaying an overlay Effect for Selfie Segmentation?
I am using Selfie Segmentation to remove the background and using overlay effect to display it but the probelm is i need to somehow hide the preview and just display the OverlayEffect
Clone this repo
...
0
votes
0
answers
51
views
Swipe Behaviour in LazyVerticalGrid in Jetpack Compose [closed]
I am trying to detect swipe over the elements placed in a LazyVerticalGrid in Jetpack Compose. The code looks as follows:
@Composable
fun SinglePlayerGameScreen(modifier: Modifier=Modifier) {
val ...
2
votes
2
answers
63
views
Checking if a class exists at runtime while allowing for compile-time/static analysis errors
I'm working with a platform where a few things might or might not be available at runtime. To check for their existence, I have a lazy property that goes (Path is only used here as an example):
import ...
InSync's user avatar
- 11.9k
5
votes
1
answer
62
views
ModalNavigationDrawer doesn't want to close or open programmatically but responds to swipes
I followed Android's Compose tutorial and copied the code to open and close the drawer, but I cannot get it to programmatically open or close. It swipes just fine, but I'd like it to close when I tap ...
1
vote
0
answers
20
views
Handle back pressed on fragment after rotating device
After rotating device my OnBackPressedCallback in Fragment doesn't performing.
I have tried to add callbacks to requireActivity().onBackPressedDispatcher in different lifecycle callbacks (onAttach, ...
0
votes
0
answers
26
views
ItemTouchHelper drag gesture releases after moving one item in RecyclerView with ListAdapter
I'm implementing drag-and-drop functionality in a RecyclerView using ItemTouchHelper and a ListAdapter. Swiping items works perfectly, but I'm facing a strange issue with dragging.
The Problem
When I ...
0
votes
1
answer
55
views
How to intercept responses using Ktor on Android
I'm an Android developer.
I'm using Retrofit and had previously created an interceptor for testing purposes.
It intercepts cases that are difficult to reproduce in the actual production environment ...
3
votes
1
answer
46
views
How to fix java.lang.NoSuchMethodException when using a Hilt Worker?
Hilt keeps not initializing the Worker just because of sharedPreferences variable here
@HiltWorker
class AnilistNotificationWorker @AssistedInject constructor(
@Assisted private val context: ...
0
votes
0
answers
16
views
How to process msf URIs for passing to other activity [closed]
My method to pick file:
internal fun filePicker(context: Context) {
val intent = Intent(Intent.ACTION_GET_CONTENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
type = "...
-1
votes
1
answer
44
views
Android Broadcast Receiver call function in composable [closed]
looking for help on best way to handle the following scenario
have a BroadcastReceiver that is used to receive data from a scanner
the compose with the receiver also uses a navcontroller to navigate ...
1
vote
1
answer
98
views
takeWhile equivalent for Kotlin maps
My Kotlin project needs to parse files and keep track of the outcome:
fun parseFiles(dp:MyDataProvider, files:List<String>)
{
//store the status of each processed file
val statusMap = ...