« first day (3562 days earlier)      last day (1610 days later) » 

02:43
@IvanMilisavljevic @IvanMilisavljevic ListView
 
2 hours later…
05:08
posted on July 17, 2020 by Saurabh

Emulator 30.0.22 is now available in the Canary and Dev channels.  General fixes available in this release: Fixed an issue where latest Asphalt 9 game rendered with a black screen.Fixed an issue in Vulkan where if running with a Vulkan 1.0 instance on the host, vkGetImageMemoryRequirements2KHR would incorrectly clear the returned VkMemoryRequirements2 struct's pNext field.Fixed a memory l

 
1 hour later…
06:25
@RaghavSood, @DaveS, @ColdFusion, @Mauker, @Pochmurnik, @CptEric, @RaymondArteaga, @Graeme, @ballBreaker This is your weekly reminder of New Free Games on Epic Store!!!!!!! :3
 
4 hours later…
10:03
@mahdiazarm try switching to RecyclerView, its perfect for your usecase
10:15
This was the most starred message last year on this day:
Jul 18 '19 at 20:21, by Ivan Milisavljevic
usual garbage
@IvanMilisavljevic switched to recyclerView in the morning but still have the same issue
what type of adapter?
if its a ListAdapter, it calculates the list diff asynchronously so you have to do something like this
No, it's RecyclerView.Adapter
adapter.addItems(items, Runnalbe { rv.smoothScrollToPosition(0) })
10:31
i think i can't do that
it requieres ListAdapter (thats new type of Adapter for RecylerView with AsyncDiff)
right, im not 100% sure whats the issue in that case, i have a RV with ListAdapter and smoothScroll works for me
I have a singleton with an instance of Items ArrayList and also a class called ResaultHandler which adds a new item to the Items ArrayList and calls an interface method to tell the activity Items has been updated and in that interface, I call smoothScroll to scroll listview to the bottom
the weird thing is smoothScroll works good inside onCreate or other activity methods
It also works in events like onClick
11:24
@IvanMilisavljevic can you give me some sample codes in java?
It's not.
As long as Raghav is in control
11:40
@R15-Zucc @Ivan I cannot believe it's been 1y already...
11:53
This is new
12:48
Ribbit
Howdy humans
 
1 hour later…
13:50
I got that too
14:00
You followed me on Github
14:41
cause you're cool on github
@DaveS this is gold xD
64 bytes from 192.168.1.102: icmp_seq=1 ttl=64 time=1083 ms
This is what I get for not using ethernet throughout the house
1 second+ ping to a machine less than 2 feet away
Have you tried 5GHz
Yes, it's even worse
Whoever designed this house probably studied the optimal methods to block wifi signal
What is wrong with recyclerView.smoothScroll?
nothing
14:55
I used every adapter that android provides since last night but smoothscroll doesn't work when called from the interface at all
How messengers like WhatsApp scroll the view to the bottom when new message arrives
so you need something similar? to scroll to the bottom of the screen?
@grrigore Yes
how does your layout look like?
is the RV nested?
no it's not nested
i have a simple recyclerview
is it reversed?
what did you try?
15:02
https://pastebin.com/rkEQCU06
this is the layout code
read this please
https://chat.stackoverflow.com/transcript/message/49953603#49953603
gimme some code xD
relevant one
you know
it doesn't scroll when you add a new item, right?
yes
items added from outside of the activity
i have a singleton
do you call that notify stuff?
15:06
yes of course call it
I don't get one thing
you have an activity with a RV
and a singleton outside of the activity
where exactly? how does the RV from the activity that the data has changed?
new messages sent to the phone through WebSocket
and Items arrayList is inside the singleton
I did something with sockets
I used BroadcastReceiver
And using that I let the activity know that the data has changed
when new message arrives i add it to items arraylist defined in singleton and call an interface method defined in activity to notify the recycler and get data again from singleton
and after you get the data you call smoothScroll?
15:13
yes
but the data is correct, right?
everything fine on that side
the problem is list doesn't sroll down when new data added to it
if i manually scroll down or touch the recycler then the smoothscoll method get called
no error, no warning?
here is the codes: pastebin.com/3V7j7snF
no nothing
what does messageRecyclerAdapter.refresh(messageArrayList) do?
15:19
if i call smoothscroll inside onCreate it will work
void refresh(ArrayList<Message> messages) {
    //this.messages = messages;
    this.messages = Singleton.getInstance(context).RoomsData.getActiveRoom().getMessages();
    this.notifyDataSetChanged();
}
this is the code it's a method inside adapter
actually when i scroll recycler a little bit down with my finger it jumps down
looks like android was way simpler back in the day
Yeah, crypto is way easier than this
At least when you lose money, you can find out why
ha ha ha
i think the scroll event doesn't get called at all
Quitting Android dev was probably one of the biggest quality of life improvements I've made in the last 5 years
what i have to do now?
15:24
Probably in close competition to getting kicked out of the US
Override the scroll method and add a log statement to verify that?
@RaghavSood XD
what raghav said
chatList.post(new Runnable() {
         @Override
         public void run() {
             chatList.smoothScrollToPosition(messageArrayList.size()-1);
         }
     });
try this
I don't know if this is shit
i tried before
15:26
"looks like the event doesn't get fired" => add a log statement in the event listener
oh
man
that's fucked up than D:
runnable, runOnUiThred and so on...
yes exacly
:(
try calling this.notifyDataSetChanged(); in the activity
clear the chat, add the new data, call notify, call smoothscroll
see if this works
@Mehdi i will test it but i'm sure the view doesn't actually scroll without touching it
ok
yes yes, but being "sure" means you already tested it :D
15:29
maybe it's something wrong with that singleton and the adapter
heyoooooooo
yoooo bb
aaaaaayyyy griggy
whats up
nothin is wrong with singleton and adapter I'm sure
TGIF
all the way
15:32
@grrigore activity doesn't have a notifyDataSetChanged();
I need this weekend
use adapter, not this
Every day is a weekend if you're unemployed
that sounds great, rag
@grrigore I feel that man, this week has been long AF for me
15:37
it works!
Are any of you familiar with Jitsi (zoom alternative)?
We used to run an instance, worked fine, but we realized life is a lot easier when you don't involve videos into conversations
yeah
I haven't turned my webcam on for a single conference
same here
except when I shaved my head and kept my moustache to show everyone
Yeah so they have a blur background feature but it doesn't preform well. It crashes the page often with older computers. I just implemented the blur background feature into BitLink and its much more performant so I'm gonna open source that part and create a PR for Jitsi.
15:40
and I love it
Instead of segmenting every frame we only segment when the last segmentation is done and use the old segment data in the mean time. So quick movements will lead to worse accuracy for a couple frames but for the most part it will work well.
have a nice weekend guys
see ya
cya grigy
@mahdiazarm let me know if you managed it
thank's it ok now
fuck android
@grrigore this was the problem and i have no idea why!
1 and half day waisted only because notifyDatasetChanged not called directly
16:13
Well lesson learnt😂
Yes :D
 
1 hour later…
17:43
Hello folks
o/
lolo requested access. Rep: 29 - Questions: 8 - Answers: 0 (ratio 4:0)
heya twiz
and nya !
Heya bb
how's it goin amigo
17:58
Research tasks. Shitty tasks. Me code monkey. Me wanna code
Otherwise, mighty fine
yeah haha I hate that shit so much
"I don't have anything to do"
"oh here's a learning/research task"
"I instantly regret telling you"
o/
!reject
@lolo you currently do not meet the requirements to chat here. You can find our requirements in the rules.
18:06
heya guys
oh hey Vic
how are you doing this fine friday?
I'm pretty good right now, no real complaints
work is super slow though so I'm excited for it to end haha
Have a DND session planned for tomorrow so I'm suuuuper excited for that rn
it's been too long
How about you amigo?
nice, good to hear!
I'm doing okay, a bit "under the water" since I'm back from vacations so looking forward to things coming back to normal, weekends definitely help with that :D
I don't think "under the water" is a saying by the way, "under the weather" is, but it means that you're feeling sick
I'm assuming you mean that you're drowning (in work)?
@Nyakouai Sometimes researching things is enjoyable.
If its fun things.
18:16
Not this time
@ballBreaker yes, so maybe "overwhelmed" would be a better fit?
Makes me feel unskilled and useless
@Mehdi yep! I also just say "drowning" it's pretty clear too
gotcha, thanks!
no worries! sorry to hear you're feelin it this week haha
this has been a shite week
18:19
I'm not sure if its just how iOS and Android work, but ReactNative really has problems with displaying/opening/closing the keyboard.
probably a mix of both
thanks bb :D
@Nyakouai regarding what topic?
Work
@Nyakouai So your boss came up to you and said: "You don't seem to know how to work. Go research work"
I meant to ask about the technical side
18:27
@twiz Now he came saying "we need that done, people are busy, since you're the new hire, can you take care of that?"
Well he didn't ask you to get him coffee, so that's a plus.
@Mehdi Automated test - can't really be more precise since I'm not allowed to speak about work
ew automated test
everyone knows deploying straight to prod is the best automated test
With my degree and massive exp, i'd cringe at getting coffee for people
I get coffee for people but that's just because I'm nice
18:30
@Nyakouai I understand no worries, but how does that make you feel unskilled? doesn't it mean that your research will be the foundation of future practices for all the team?
I was joking, just referring to the stereotype of the arrogant boss making people get them coffee.
Not sure such a person actually exists.
hhahaha I know I was just teasing
We should have a Day's Since Android Talk that counts how many days since we talked about anything relating to android
@Mehdi Nah, it's just that I get nowhere. It takes a lot of time for very small results (when there is), 90% of the time, the tools aren't in place or functionnal, so I need to learn a whole other thing to get it working to support my current tasks... it's just a big heap of blockers that keeps piling up rather than decreasing
@JBis there was android chat this morning you cretin
but also good idea
I like it
18:36
@JBis I feel like its fairly common for there to be a single statement about Android, its just that most people don't know enough to actually have a meaningful conversation.
I certainly don't
Unless ReactNative counts.
@Nyakouai Ah, well it's normal, it takes around 6 months for a new hired software engineer to be really productive and bring real value to the team. I wouldn't worry too much about this
It's too long
Can't afford to slack, look bad or lose this job
I kinda jumped continent for it
i mean that this duration is normal in the whole industry
It's okay, I'm a big ball of panic, but it's well compartimented to work hours, I'll be fine ^^
compartmentalized
18:37
> It depends. But IMHO, it should take about a month to know your way around, and up to six months to be normally productive.
and a year to not give a shit anymore
@twiz lol
but true, i've never written android java/kotlin
I joined this chat to promote my bot
|| echo and it worked!
and it worked!
but how does james feel about being alive
Invalid command! Did you mean: phlease, erase, pls? Try help for a list of available commands..‍.‍.‍
I love it! JBis is the best!
@ballBreaker stop using james so you can star your own jokes
unstarring for power abuse
and reported
aww
18:43
hahaha that conversation you linked is wild
that was back when I was being sexually harassed in the office
It's also the same day Ivan joined!
what a day
yeah, my first interaction with you was when you accused me of flagging your message lmao
everyone's out to get me
Now that you mention it, this is probably the longest span of time I've ever gone on this site without being suspended
We have to fix that
You've gotten smart, and removed your offensive messages
poopy poo in the poo place
you can flag that if you want
@JBis IDK if smart is the right word, more like I just have more to lose now lolol
I don't wanna lose you guys <3
Also I don't like making mehdi mad
18:47
aww
Mehdi is like that understanding but disappointed parent, which is somehow worse than a parent that slaps you, like Raghav
Actually, scratch that, Raghav is that random cop slapping you
3
to me it's more like a colleague that got the promotion you never wanted, because you don't want the responsibility, but every time you do something bad you can see the pain in their eyes and you remember that it could have been you
hahaha I take all that as... compliments? XD
it's like he's that ugly virgin and you're the handsome chad and you don't want to make him feel even worse about himself, you know?
that one was also a compliment
fine, I'll also take it
18:52
What do y'all thing about stores in the backend?
I love storing in the backend
can't tell if thats some sexual joke, especially since its from you
So what do you mean "stores" hahaha
Even if it wasn't, since it's bb, the innuendo is here
@JBis Are you asking if databases were a good idea? lol
18:54
Its not exactly a db
its not disconnected from the program.
So just storing in memory?
in memory, yes
eg
class WorkerStore {
    msWorkers: Array<mediasoup.types.Worker> = [];
}
export default new WorkerStore();
Well, obviously there are potential problems with that.
and then your services and stuff can add and query that
@twiz eventually you could move to a db system. The good part is you just need to swap the data layer (stores and their queries).
Alright, gotta go, Friday beer with coworkers! See you all! Have a good week end
18:57
Kind of depends on what you're storing though. It's only a good idea if its temporary data anyway.
The entire app is temporary
Like obviously it would make no sense to store your users in something like that.
ofc
idk how to ask the question properly nvm
i need to learn better architecture techniques
@Nyakouai enjoy dude!
amazing summertime tunes
19:18
I'm sad
how come
have u tried being not-sad
heya dave
19:35
hey
how's it going today
it's friday so that's a plus
how about you?
ehh same here man
I woke up this morning thinking it was saturday, so that pretty much describes my week lol
lol
excited for DnD tomorrow though
but otherwise meh
lol
debating if I wanna just call it now and start playing xcom
19:45
DnD sounds fun
I always wondered why there isn't like a good Dungeon Master AI
feels like a job you could automate
@ballBreaker I ate something, I'm pretty happy now
dnd?
oh nerds..
@ballBreaker is that the new one chimera squad?
@DaveS yeah same here actually, I'm surprised there hasn't been a really well executed DnD simulation yet
I guess maybe because there are a ton of grey areas in it
19:48
yeah
Might be hard for an AI to determine that you need to do a dex check because you want to try to toss a baby into the dumpster from 3-point range
whaat
are you high?
@DaveS no I haven't played that one yet, going to make my way through the base game and then the expansion (the second)
@grrigore no just giving a weird example of where an AI would be like wtf are u trying to do
yeah I heard chimera squad was linear and kinda small / simplified
not the traditional xcom experience
the base game and the expansion are great
Yeah from the sounds of what I saw on it, it's kind of like how far cry comes out with a standalone secondary game for each of their games
it seemed kind of like that
19:50
one exception was far cry primal
that game was amazing
I never played any of em so I can't really comment on if they're bad or not
better than the original imo
was that for farcry 4?
yeah
I played 3, 4, primal and 5
nice man same here except primal
19:51
5 was kinda long
Yeah it was eh lol
primal was my favorite
I was running out of steam big time by the end of 5
yeah same
primal was a blast all the way through
it's amazing being focused on melee combat with some spear throwing and bow shooting
nice, I actually just saw that on steam yesterdaywhen I was looking for a new game
19:52
and you can tame sabertooth cats and giant bears
yeah if you can get it a good price I recommend it
nice, I'll keep my eyes open fo rthat
I'm not great at completing games, I usually run out of steam or get bored by the end and never end up finishing them.. but the FC games I've always finished
primal felt shorter than 4 or 5, but it felt like the right length
yeah that makes sense, I don't think those standalone ones were meant to be super big
just a different take on the same engine I guess?
so farcry is cool?
If you like FPS games they're great
lots of fun
great gameplay + great story usually
19:54
is red dead redemption on pc?
I think so
im gunna slink out of here and go over to my friend's place
I can't take this work-day anymore
lol
enjoy your weekends fellas!
20:10
later
21:02
posted on July 17, 2020 by Android Developers

Posted by David Winer, Product Manager This blog post is part of a weekly series for #11WeeksOfAndroid. Each week we’re diving into a key area of Android so you don’t miss anything. This week, we spotlighted languages; here’s a look at what you should know. Modern Android development starts with outstanding language support. Together, Kotlin, the Java programming language, and C++ f

21:35
internet is ded
rip cloudflare
@Mehdi aw damn
21:52
Y'allers
nvm figured it
rubber duck!

« first day (3562 days earlier)      last day (1610 days later) »