oday
01/19/2020, 1:34 PMsvenjacobs
01/20/2020, 7:12 AMSagar Suri
01/20/2020, 8:39 AMJSONArray
from the remote data source. For simplicity the JSONArray
consist of a list of the following `JSONObject`:
{
"id": 1,
"type": "city",
"url": "<http://xyz.com/berlin.png>",
"section": "world",
}
In my UI I want to show only list of Images. My UI should not get all a model which consist of URL
. In which layer should I use a mapper to convert the ModelEntity
to a Model
which consists of URL
only?iex
01/20/2020, 9:29 PMMutableLiveData
to Observable
?Sagar Suri
01/21/2020, 12:00 PMview
.Bryan Lee
01/21/2020, 11:08 PMSagar Suri
01/22/2020, 4:46 AMMichael Lever
01/22/2020, 8:35 AMturastory
01/22/2020, 8:40 AMfcosta
01/22/2020, 10:51 AMiex
01/22/2020, 1:48 PMbhatnagarm
01/22/2020, 1:54 PMBrais Gabin
01/22/2020, 5:02 PMnotifyDataSetChanged
or a setText
performed outside the main thread. The problem is that the app is huge and those errors are race exceptions so they are not easy to reproduce. For that reason I’ll need some “tool” that checks that all the interactions done with view is done in the main thread. Any idea?Tim
01/23/2020, 1:56 PMRicardo901130
01/23/2020, 3:07 PMAndrey B.
01/24/2020, 7:14 AMArslan
01/24/2020, 9:51 AMhikkidev
01/24/2020, 10:51 AMMaku Mazakpe
01/24/2020, 4:15 PMTask :app:kaptDebugKotlin FAILEDlocation: package com.maku.potswatch.databinding FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:kaptDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution> java.lang.reflect.InvocationTargetException (no error message)
Erik
01/24/2020, 6:31 PMandroidx.fragment
artifacts v1.2.0 and up, AND
- If you observe LiveData
in fragments, AND
- If that fragment does inflate a view in onCreateView
AND
- If that view is not null
THEN use viewLifecycleOwner
to observe live data.
OTHERWISE use the fragment itself, which is a LifecycleOwner
, to observe live data.
Is this correct?J6ey
01/27/2020, 3:06 AMMaku Mazakpe
01/27/2020, 6:42 AMMatsushita Kohei
01/27/2020, 2:45 PMNikola Milovic
01/27/2020, 6:15 PMMatsushita Kohei
01/28/2020, 9:59 AMArtem Shumidub
01/28/2020, 1:00 PM<http://java.io|java.io>.FileNotFoundException: .../android-application/app/build/tmp/kotlin-classes/beta/META-INF/app_beta.kotlin_module (No such file or directory)
I tried to disable R8 minification, but it did not helped 😢 .
Any ideas ? 👂wasyl
01/28/2020, 3:27 PMjava.lang.LinkageError: Method void com.example.h72.a() overrides final method in class Lcom.example/de; (declaration of 'com.example.h72' appears in base.apk)
.
That’s after obfuscation with R8. The cause was we’d have the following class hierarchy:
androidx.lifecycle.ViewModel <- BaseViewModel <- SomeViewModel
, and in SomeViewModel
we’d have a fun clear() { }
method. However, method with same name and signature appears in `androidx.lifecycle.ViewModel.java`: final void clear()
.
What I quite don’t understand is, why everything works without R8? I clearly see public final void clear()
method in the decompiled SomeViewModel
, and so feels like things should crash straight away. What happens instead, app works fine without R8 and only crashes with it. 😕 Any idea what might be the reason?Mark
01/29/2020, 3:39 AMPoint
) to using Point
instead of Pair<Int, Int>
? I’m preferring Pair
(because of destructuring and also not being Android-specific) but since I’m creating potentially tens of thousands of these objects, I wanted to check if there is any performance issues.corneil
01/29/2020, 11:07 AMMaku Mazakpe
01/29/2020, 11:37 AMMaku Mazakpe
01/29/2020, 11:37 AMwasyl
01/29/2020, 11:49 AMinterface
interface
in backticksNikolay Sinelnikov
01/29/2020, 1:11 PM