Skip to content
Advertisement

Tag: kotlin

How to fix Scrolling issue of horizontal ViewPager2 and RecyclerView that are inside a vertical RecyclerView?

I have a RecyclerView (say, rootRecyclerView) that can have different kinds of rows depending on some API response. I implemented one of them is a horizontal ViewPager2 and another one is implemented with horizontal RecyclerView (say, childRecyclerView). The rootRecyclerView swipes vertically whereas the viewPager2 and childRecyclerView swipes horizontally. The Problem: When I swipe on the screen, if the swipe is

Not currently allowed to connect to camera “1”

ANDROID Caused by java.lang.SecurityException: validateClientPermissionsLocked:1102: Callers from device user 0 are not currently allowed to connect to camera “1” Camera permission is granted. It is runned by a FOREGROUND SERVICE. Works on most devices, but there are few Android 9, Huawei, Motorola and Xiaomi devices that is not working on. On this link: https://android.googlesource.com/platform/frameworks/av/+/refs/heads/master/services/camera/libcameraservice/CameraService.cpp Line 1031 explains: “Only allow clients

Gradle migration 3.1.4 -> 3.5.1; :app module doesn’t compile; ClassNotFoundException: Didn’t find class on path: DexPathList

I have two applications where I face the same issue while trying to update project target API from 27 to 29. To do this, first I need to update Gradle plugin at least to 3.2.+. Project is building fine with 3.1.4, but as soon as I rise Gradle plugin to: classpath ‘com.android.tools.build:gradle:3.5.1 distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip (Same error with 3.2.1 and higher) I

Copy some values from one ArrayList to another kotlin

I have list: ComplexModel contains (Name,Title,StartDate,Summarry) I want to find better way to create new MutableList from skillsList but the new list have to get only Name and Title from the first.For the moment i`m with this solution but i wonder if there are better way to achieve this. Answer

Advertisement