lawlorslaw
06/29/2018, 6:42 AMlovis
06/29/2018, 7:32 AMlawlorslaw
06/29/2018, 4:34 PMFrancesco megna
06/30/2018, 10:34 AMneuber
06/30/2018, 12:06 PMAyden
06/30/2018, 1:45 PM{
"error": {
"name": [
"The name field is required."
],
"email": [
"The email field is required."
],
"password": [
"The password field is required."
]
}
}
Ayden
06/30/2018, 2:00 PM{
"status": false,
"message": "Duplicate entry '@gmail.com' for key 'users_email_unique'"
}
{
"status": false,
"message": {
"code": "1048",
"message": "Something goes wrong."
}
}
ursus
07/01/2018, 4:16 AMar-g
07/02/2018, 1:53 PMprivate fun processSelectedImages(selectedImages: LinkedHashMap<String, Image>) {
assertMainThread()
fun fillAdIds(
index: Int,
map: LinkedHashMap<String, Image>
) = map.values.map { image -> image.copy(adId = tempAdIds[index]!!) }
val imagesWithAdId = listsOfImages
.mapIndexed(::fillAdIds)
.flatMap { it }
.map { it.copy() }
NPE happens in internal function fillAdIds
neuber
07/02/2018, 2:42 PMcart
07/03/2018, 7:08 PMcart
07/03/2018, 7:10 PMlawlorslaw
07/03/2018, 9:17 PMyaakov
07/04/2018, 12:32 AMJava.lang.IndexOutOfBoundsException: Index: 0, Size: 0
How can I prevent this kind of error? I think the problem comes from here:
val address = geocoder.getFromLocation(it.latitude, it.longitude, 1)
val country = address[0].countryCode.toLowerCase()
chetsachdeva
07/04/2018, 8:34 AMaudax
07/05/2018, 9:34 AM.gradle
folder in my project today I started getting compilation errors: https://gist.github.com/audax/54fffa916c420af70881ad891d3fc5f8
I am using kotlin 1.51 (but also tested 1.40 and 1.50) and the android gradle plugin 3.1.3. Anyone got an idea of why that is crashing?Francesco megna
07/06/2018, 8:17 AMrattleshirt
07/06/2018, 8:25 AMCould not find accessor companyName
when using android:text="@{data.invoice.companyName}"
(kotlin v1.2.51) with abstract var companyName: String?
. In the kotlin bytecode I see a getCompanyName()
method but that doesn’t work eitherlocke
07/06/2018, 5:31 PMlawlorslaw
07/07/2018, 2:50 AMblakelee
07/07/2018, 7:48 PMseetha
07/08/2018, 4:09 AMViktor Vostrikov
07/08/2018, 8:22 AMlouiscad
07/08/2018, 2:07 PMredrield
07/08/2018, 2:41 PMFrancesco megna
07/08/2018, 8:05 PMAlin B.
07/10/2018, 7:47 AMclass Person(val firstName: String, val lastName: String, var age: Int)
and avoiding null means that whenever I instantiate it, I need to pass default values? So maybe have firstName="", lastName="" and age=0?Alin B.
07/10/2018, 5:06 PMUserListFragment
, UserDetailsFragment
, UserListAdapter
, UserListViewModel
. Now if I have all these open in Android studio I find it a lot harder to find which one is adapter, which is ModelView. Why not go with FragmentUserList
, AdapterUserList
, ViewModelUserList
?Alin B.
07/11/2018, 1:30 PMsomeClass(val id : String, val imageResourceId: Int)
. Basically I want to set the drawable id as the source of the image resource to show in the app. However, resIds may change upon adding new resources so I end up with a database which hosts wrong ids. One way I can think of is adding the icons in the assets
folder and user Glide to load from there. Any other thoughts?Can Orhan
07/11/2018, 3:56 PMCan Orhan
07/11/2018, 3:56 PMjc
07/11/2018, 4:20 PMrkeazor
07/12/2018, 12:33 AMCan Orhan
07/12/2018, 8:04 AMrkeazor
07/12/2018, 1:00 PMCan Orhan
07/12/2018, 2:43 PMjc
07/13/2018, 8:28 AMrkeazor
07/16/2018, 5:30 AMjc
07/19/2018, 8:20 AM