« first day (4013 days earlier)      last day (935 days later) » 

2:41 AM
@MwBakker any compatibility issues on ide?
 
 
3 hours later…
5:44 AM
Goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!!! :D
 
6:08 AM
good morning
 
qki
6:35 AM
hello there
 
 
1 hour later…
7:41 AM
is it a good idea to inject the activity's context?
 
what do you mean by that
 
I'm using hardcore localization and sometimes I use the app context vs activity/fragment context
and it's buggy
so I'd like to inject the activity's context into a class
not the app's one
 
Application context is the way to go imo
 
yes, but
sometimes string are split into the system's lang due to app context I guess
and user set lang due to the activities/fragemnts
 
If you change the language during run time then you have to update the configuration - nothing to do with the context
 
7:51 AM
I do it like this
if you wanna have a look
 
Looks ok, you may want to restart the application after changing the language
You can use this github.com/JakeWharton/ProcessPhoenix and call ProcessPhoenix.triggerRebirth(context);
 
I recreate the activities like this
 
Yeah that is hacky style... just re-create the application and be done with it
 
thanks
will try that
sometimes it works, sometimes the language mix
 
8:15 AM
@MuratKaragöz so I guess using the restart app aproach, I just have to set the language and restart the app, without having to deal with other stuff per activity/fragment
 
Yeah, use the library from jake wharton for the restart
 
thank you
 
8:52 AM
Morgen, Nerds
@murat 👋 hope you're doing great!
 
o/
 
9:07 AM
@Mehdi hey man, yeah doing fine hope you too
 
doing good as well 👍
 
9:26 AM
sup @MuratKaragöz
 
Hey fresh O'Sullivan
 
Synced starred message data. Took 104419 ms.
 
Newcastle to the moon
 
10:01 AM
@MuratKaragöz howdy
 
Doing fine, I got an android task so I wanted to check out what my android bros are doing
 
10:13 AM
what's that task about?
 
10:28 AM
This was the most starred message last year on this day:
Oct 11 '20 at 10:22, by R15-Zucc
Oct 12 '19 at 19:46, by Mehdi B.
who's the miserable responsible for the heat in this place?
 
@MuratKaragöz happy to be back doing Android?
 
Tim
I'm guessing no lol
 
It's just for a week then I am out again
Did you guys know that there is a memory limit for Intents
@grrigore just adding some new features to a six year old application which surprisingly still runs smooth
 
Tim
yes since a few years
 
what do you work on full time now? backend?
 
10:40 AM
depends on what tasks I take during the sprint planning, but lately it was more backend/infrastructure work
I am also eyeballing sentry.io for a monitoring system, anyone got experience with that?
 
11:05 AM
ah nice, especially the infra part
I didn't know it, but it seems it's a tracer for perfs and logging? like a fancy full stack Hugo? github.com/JakeWharton/hugo, correct?
 
It goes more into the direction of production builds
 
Tim
it's just one of the 20 available crash reporting tools right
 
11:27 AM
depends on which other 19 you mean
 
Tim
I can only name firebase and instabug but there must be many more
 
11:45 AM
@MuratKaragöz lol
bugfender
 
Tim
buglife
 
nice
 
12:23 PM
@MuratKaragöz parcelable has a limit of 1mb
@MuratKaragöz sentry is nice for log collection, but I would consider datadog as well
datadog is a bit more cloud-oriented but has some really nice features for mobile
@Mehdi oh i created the same for kotlin
its still in the works, but its working
 
12:41 PM
posted on October 11, 2021 by shows

In this episode, Donn and Kaushik reunite for an episode on how they use productivity tools like various todo apps as well as how the organize information for storage and easy retrieval in their day to day lives. Shownotes In this episode, Donn and Kaushik reunite for an episode on how they use productivity tools like various todo apps as well as how the organize information for storage and eas

 
1:38 PM
posted on October 11, 2021 by CommonsWare

Subscribers now have access to an update to Elements of Android Jetpack, known as Version 2.2, in PDF, EPUB, and MOBI/Kindle formats, in addition to the online reader. Just log into your Warescription page and download away, or set up an account and subscribe!

 
Tim
1:52 PM
@IvanMilisavljevic how similar/different is this to the kotlin version someone made of hugo? (called hunter? I think)
 
hugo boss?
 
Tim
possibly
 
sup tim?
 
@grrigore hilarious
@MuratKaragöz what do you mean? investigating what impacts the perfs of a production build?
 
2:10 PM
o/
 
@Tim this is based on the ASM, which is working on the generated Java bytecode. Mine is working on the kotlins IR representation directly
 
o/
adaam compose must be nice
looks like it can get a lot of customization
 
Tim
I don't know what any of that means but sounds like your approach is better
I love infrared
 
The main difference is that (afaik) this will work only on the JVM target, mine is is all-purpose KMM solution
Im basically changing the IR AST Tree, which is used to generate what ever bytecode kotlin can be compiled into
 
Tim
interesting
 
2:25 PM
you know this stuff tim?
 
Tim
I know what JVM means but that's about it
 
same
 
2:38 PM
its not that complicated
AST Tree stands for abstract syntax tree, that's basically structure of your code, ie import statements, class declerations, variables - usually stuff that's related to syntax
IR - is intermidiate representation, kotlin compiler has 2 parts, fronted and the backend part
Fronted part is used to check the AST tree for validity (if your syntax is correct, etc)
Backend part of the compiler is generating IR, which is universal representation of your kotlin code. That IR is used by LLVM compiler to generate actually bytecode. This is the reason why kotlin can be compiled to any bytecode supported by LLVM since its compiled from the IR and not the actuall bytecode
 
so IR helps mulitplatform support?
or something
 
@grrigore Yes
and gives you the ability to create a compiler plugin and modify and analyse that IR representation
 
sounds cool
 
user image
6
😊
 
@ballBreaker is touching me
 
2:50 PM
Mehdi is gonna bite him for that don't worry
 
3:02 PM
where im i lol :D
 
@AdamMc331 where is margin in compose? ..
 
It doesn't exist. You want the padding modifier lol
 
Tim
margin in xml is the same as padding in compose but set on the parent instead of the child
there is a codelab that explains it
 
3:54 PM
@asim hey! That's racist! We frogs hate the heat!
 
Tim
unstarred because racist
 
RO abuse
 
Tim
don't worry I was lying to maintain the peace
I thought that to be premium RO behavior
 
RO honourable, goodbye, going back to S3
 
4:16 PM
glacier?
 
Tim
mother?
 
4:41 PM
you reminded me of this scene, feel free to skip to 1:35 if you're in a rush xD
 
Tim
very weird, lol
 
Hahaha yes, the whole movie is like that, random strangers talking around coffee / cigarettes
"very good, i don't understand nothing" XD
 
5:36 PM
@Tim well
Won t that set the padding for all the elements in the parent?
Like a column with 2 texts
 
Tim
what are you working with
 
If I set padding on the column both texts will have that padding right?
 
Tim
in practice this will look like
.padding(10)
.background(yellow)
.padding(10)
instead of
.background(yellow)
.margin(10)
.padding(10)
 
@Tim What do you mean?
So double padding will mean margin + padding?
.padding(10).padding (20)
10 margin, 20 padding?
 
5:42 PM
This makes sense for a background
So it's the double padding gonna add 30 margin?
 
Tim
this is not for background it's just an example, this applies to everything
 
Well yes
But padding 10 will add 10 padding, so the object has 10 padding, then add 20 padding which I think will work like a 30 margin
Right?
 
Tim
in XML you have a textview with 10 margin and 20 padding, in compose you have a composable starting with 10 padding, then the textview, then 20 padding
 
So I have to wrap the textview into something
If I want only a specific view with 10 margin
 
Tim
I don't know the specifics, haven't used compose myself
but I know some nerd who has
 
5:46 PM
Summon Adam?
 
Tim
he won't reply
too busy being famous
maybe if you go in his twitch stream and donate $100
 
xD
Lemme try
@AdamMc331 how would this look in compose? Imagine both rectangles are filled
The first one has no "margin"
While the second one has 16
 
Tim
Where is the money G
 
6:02 PM
Hehe
Mo money mo problems
 
@grrigore You would just apply a 16dp padding around the second rectangle. One sec
Column {
Box()
Box(modifier = Modifier.padding(16.dp))
}
how do we do code in this thing I forgot
 
so that's a margin?
 
idk but you get it
 
ctrl + k
but doulbe padding? .padding(10).padding(20) it's 10 margin, 20 padding?
or 30 margin? xD
 
ooo
I think it will take the latest
also padding has overrides
 
6:12 PM
so 20 padding?
 
.padding(16.dp) is all sides. But you can do .padding(vertical = 8.dp, horizontal = 16.dp) or even .padding(bottom = 20.dp)
@grrigore yes pretty sure
 
and what if you want 10 margin 20 padding
do I have to wrap the view with something with 10 padding?
 
uhh
 
there should be a .margin one xD
 
oh I see what you mean
there's not
 
6:13 PM
yea like margin and padding for a view
 
so you need to think about padding being space around whatever you're creating. So if you want padding inside the box, and outside, you'll basically layer that. Let me see if I can provide a clear example
gimme like 5 minutes
 
sure, take your time, if you're busy don't waste your time
 
Nah I can do it just trying to think of the best way to explain it
So here is padding, which is basically saying "push our children in by this amount", which is kinda how you think about it today.
Since there's no margin, you basically need to wrap it in another box, and give that padding to simulate the margin aspect.
 
yes I've thought about that
iirc it's the same in flutter
 
It's not pretty, and it's a kind of contrived example, but that's the way to think about it. Margin as a concept doesn't exist
 
6:24 PM
nope
 
It's similar to flutter, yeah.
 
flutter does have margin
I guess
thanks
I've tried that but I guess I messed up the code
and it went all red xD
forgot to add the { }
I think one can create a view called Margin and use it to wrap stuff
well idk flutter has some "margin" but might not work for all views
 
I think it depends on the screen, because we are looking at a contrived example and depending on what you're actually trying to build, there might be other ways to look at a solution. /shrug
 
sure
anyway
thank you
 
asked someone if he had outlook, he purchased it
to check 5 mails a year at max
is it cold already where you guys live?
 
6:35 PM
Not cold in NYC. Definitely starting to go down but still pretty nice.
 
Tim
@grrigore so flutter is better than compose
 
7:31 PM
yo adam
 
7:45 PM
o/ jaad
 
 
2 hours later…
Tim
9:49 PM
@ballBreaker I bought new pathfinder a few hours ago + season pass and then played hots the whole night what is wrong with me please
 
@Tim you have idontknowwhatimdoing syndrome
 
Tim
yeah maybe
 
 
2 hours later…
11:53 PM
posted on October 11, 2021 by Navee

Android Studio - Arctic Fox | 2020.3.1 Patch 3 is now available in the Stable channel. If you already have an Android Studio build on the Stable channel, you can get the update by clicking Help > Check for Update (Android Studio > Check for Updates on macOS). Otherwise, you can download it here. General fixes and features This update includes fixes for the follo

 

« first day (4013 days earlier)      last day (935 days later) »