« first day (3380 days earlier)      last day (1567 days later) » 
00:00 - 17:0017:00 - 00:00

12:01 AM
We fixed it!!!!! :D
7h of debugging... but I'm happy now :D
 
12:16 AM
Night everyone!
 
congrats Mehdi, night
 
12:29 AM
Back
 
hey mauker
 
Hey Ivan, what's up?
 
i've seen your question about fragments and drawer
i think that has nothing to do with navigation
i think drawer is lagging every time you try to do fragment transaction
i have couple of solutions
use motion layout to implement drawer
 
it lags because it happens at the same time as the transaction
 
yeah
or delay the transaction until drawer is closed
 
12:32 AM
But that beats the purpose of using nav component
Yeah, that's what I came up with
I tried to override stuff and make part of the navigation myself
but it made things worse, I kinda broke the navigation graph lol
I think I'll add a loading delay on each fragment lol
or at least on each top level one
 
yeah exactly what im trying to find right now
drawe animation should be around 400ms or something like that
you can find exact duration in ViewDragHelper
and regarding navigation, im kinda refraining myself from using it
 
Before the navigation component I could use the listener to find out when the drawer was closed, and only then I would make the transaction
 
i might give it a try with this latest release (with support for dynamic features)
 
@IvanMilisavljevic Well, it has its pros and cons...
I believe it works very well if you have a single activity multiple fragments app
But to convert an existing app as I did... that came with a cost lol
 
12:36 AM
and brought back old problems, as this lag
 
motion layout is also solid approach
 
That's kinda what Dave said
 
still basically the same as delaying transaction
 
but easier lol
But I guess in the stage I am right now, delaying fragment loading is easier
Perhaps... I could show an undefined loading, make it wait for the 400ms-ish and then load the data
 
like a intermediate progress bar screen?
 
12:39 AM
Something like that
 
you could complete fragment transaction
 
I mean
 
and when its done hide the drawer
 
I have one fragment that basically doesn't do anything but display some info about the app
 
Just give your users the middle finger and prompt them to review your app
 
12:39 AM
that one doesn't lag since it's not loading anything at all
 
You'll be working on something new in no time
 
LMAO
 
it will lag
 
@IvanMilisavljevic Problem is I lost control over the transactions themselves
 
I'm working in Flutter
it's kinda cool
 
12:40 AM
(Which is kinda good in a way)
 
yeah
due to nav
oh ok
so you can navigate to new destination
 
But I have full control over the fragment lifecycle
 
and use navigation listener to close the drawer
after navigation to the new destination is complete
like close the drawer in the background
 
So I could make the heavy stuff stay as GONE for a while, and only display a "loading" widget
 
hm that might work
ive seen this isuse couple of times before
and it never bothered me that much to investigate further
fragment transaction is async and its offloaded from the main thread
inflating and rendering the layout is done on the main thread tho
 
12:43 AM
yup
And I believe that's the real problem
 
i was thinking about .postponeEnterTransition
but that works for Activities only
 
Ah, show/hide
Did that a lot lmao
but it uses a lot of memory if you have many frags
 
But it made my bottom navigation butter smooth
 
it should be fine in your case i guess
im thinking about something with preDrawListener
but im not sure how to fit that into the mix
 
12:48 AM
Hmmm
I'll try the layout thing first
 
actually GlobalLayoutListener could be even better
 
might work
@IvanMilisavljevic Hmmm
I'm listening
 
so if you have an Activity with nav graph and drawer layout (i presume)
 
yeah
 
GlobalLayoutListener will be triggered when the view tree changes
do the nav to destination (which will trigger the update in the view tree)
hide the drawer in the activity
hmm, but thats not going to be as stable i think
 
12:52 AM
Also, wouldn't that mean I will lose the automagic stuff from the navigation component?
I mean
 
actually OnPreDrawListener should be much better in this case actually
how do you do your navigation exactly?
 
When I tried to add the OnNavigationItemSelectedListener instead of using the setupWithNavController, I lost up navigation
Basically:
 
appBarConfiguration = AppBarConfiguration(setOf(R.id.homeFragment), drawerLayout)

setupActionBarWithNavController(navController, appBarConfiguration)
navView.setupWithNavController(navController)
 
so you have a menu in the drawer
ah ok
yeah
oh i have an idea
i have a great idea actually
 
12:54 AM
:D
 
you can implement you own enter animation for the fragment
 
Hmm
 
basically empty animation with delay = the time it takes for drawer to close
 
Ahhh I see
That might work
 
you will hold the benefit of using auto magic stuff from the nav
and it should be pretty easy thing to do
 
12:56 AM
Compiling
 
whats the score?
 
7 I guess, now it blinks lmao
 
lol it blinks :D
 
Let me increase the duration a little more
 
how exactly?
like that blinking stuff
actually beneath that line
600ms
 
1:02 AM
Ah. it gets white for a brief moment and then it shows the view
 
ah ok
thats the styling issue i guess
 
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:duration="600" />
</set>
I'm using this
 
background or window:background or something like that
 
Hmmmm
increasing it to 600 actually made it worse
 
i think you have to specify deltas for translate
 
1:05 AM
ok wait
Not quite...
 
maybe this
<objectAnimator
android:propertyName="alpha"
android:duration="600"
android:valueTo="1f"/>
is it lagging?
 
I'll try that one
brb I think my food is here
 
lol actually what we are looking for is android:startOffset
not duration
startOffset is actually delaying the animation
duration is time it takes to complete
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:startOffset="600"
/>
 
Ohh okay
 
1:26 AM
im off to get some sleep
ping me with results
 
still getting some lag
 
on the drawer?
 
yeah
damn
freaking internet :(
 
1:51 AM
I think I'll try the GONE thing now
 
 
1 hour later…
2:52 AM
 
wow
rude
 
He just registered, asked off topic question, I said, "Hi, please read [How to ask a good question]" and this was his reply lol
 
Rob
Well, at least he saved us the trouble and deleted his question by himself..
 
3:09 AM
True
 
3:56 AM
@Taseer wow
he tell the real innermost thoughts
 
 
3 hours later…
Tom
6:47 AM
o/
 
6:57 AM
Goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!! :D
 
7:08 AM
So dialog basically is an activity with android:windowIsTranslucent=true
 
 
1 hour later…
8:19 AM
@ballBreaker why, what's the matter
 
8:30 AM
hello o/
 
8:44 AM
\o
 
how you doin'?
 
Hi all
 
yo
 
o/
 
Greetings, people-who-are-not-arguing-with-config-miles
 
8:58 AM
Greeting, person-who-has-not-acquired-ice-cream-today
 
Greetings, what-the-fuck
 
Greetings, people-who-are-not-lied-today
 
Tim
yo nerds wassup
 
neerds
yo Timmy Tim
 
Nerd o/
 
9:05 AM
reading some coroutines and acting like I know what's going on
 
9:17 AM
this chat is dead, just wait for the USA guys
this means that USA guys don't really work
 
You people are weird
4
and I <3 you for it :D
 
Tim
~(˚_˚~)
tried a womp
 
(~^_^)~
 
Tim
~~(._.)~~
 
~(^.^)~
/(^.^)/
(^.^)/
 
9:29 AM
_o_
_o/
_o|
_o/
_o_
\o_
|o_
\o_
_o_
\o/
 
you're weird too womp haha
 
Everybody, daily exercise
 
Tim
ok I start
1
 
2
 
3
 
9:33 AM
2
 
man I wanna move to California
 
for the startups?
 
for the ocean and the beaches and the hills
 
@W0MP3R thanks
@Tim we already did that once
 
XD
 
9:46 AM
@Tim someday those php guys are gonna curse you so bad lol
 
9:59 AM
@grrigore and that's why I <3 all with all my heart :D
 
hug
 
did you see this? the "timeline" button below any post (q/a) stackoverflow.com/posts/5717133/timeline
 
Online since 17-01-2020 10:02 (UTC). Running on develop@355b70d. Uptime: 0h
 
yes
 
10:22 AM
I need some android/java guru
 
sure
guys we need help
 
I have a inner class FragmentPagerAdapter and there is the method getItemPosition(Object object) I want to check if object instanceof myFragment (field in outer class)
It can not find myFragment, why?
 
Tim
@Mehdi is that an A/B test? The endpoint was always available but never via the UI
(I don't have it)
 
ups nvm
 
you're welcome
 
10:27 AM
If anyone has experience with replacing a Fragment inside a FragmentPagerAdapter
 
Tim
recreate the adapter
 
the adapter has notifydatasetchanged and in getItems i put the other fragment there
but it does not create it
 
For some reasons it does not call the getItem method
When I do adapter.notifyDataSetChanged()
 
@Tim I think you're right (also the first time I witness an AB test as a user)
^ the little clock is the new button (and it's under every post, whether it's a question or an answer)
 
10:43 AM
@MuratKaragöz that is broken in viewpager since time immemorial
 
It actually calls getItemPosition which is good and I want that, but it does not call getItem to get the fragments...
 
hmm bleh i dont remember the method names
 
Tim
@Mehdi I see it now :) I thought there was a "timeline" hyperlink
 
but viewpager was always broken hence viewpager2 came
you had to do some voodoo shit for notify to work with viewpager
 
viewpager2?
 
Tim
10:47 AM
viewpager2 is buggy
 
hmm it works for me
atleast the stable version does
 
I got it
 
3
A: FragmentPagerAdapter getItem is not called

vedantOverride long getItemId (int position) FragmentPagerAdapter caches the fragments it creates using getItem. I was facing the same issue- even after calling notifyDataSetChanged() getItem was not being called. This is actually a feature and not a bug. You need to override getItemId so that you ca...

 
Tim
can you mark an entire strings file as translatable=false
 
10:49 AM
never tried it
 
hm i cant award a bounty there
 
Tim
why not
 
nvm found it
 
 
2 hours later…
12:24 PM
Ribbit ribbit
 
don't click edit I wrote something nasty
5
 
12:45 PM
:O
 
:O:O
cpu usage went to 101%
is somebody's CPU 1% slower?
 
12:58 PM
Did anyone work with Admob?
 
Yep
I used it some time ago
 
o/
@CptEric Oh so it was you.
 
1:17 PM
o/
my eyes are slowly closing
 
nooooooo
 
I am soo sleepy
TGIF
 
I'm also sleepty
My sleep cycle is... f*cked up
 
D:
 
cries in sleep
 
1:26 PM
cries in lack of sleep
 
@CptEric probably raghav's
@Mauker maukerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
 
@RaymondArteaga How were the earnings at the start? Is it a better choice to setup ad mediation?
 
1:42 PM
@Mauker Mine too, Also tried not sleeping for 24h but failed to sleep the next day
 
Ok I wrote the script to write all the messages to the db. Gotta run overnight tho.
 
Tim
why not now?
 
~(-.-~)
 
Yeah JBis, gotta live the moment
 
@Tim to avoid consuming the whole bandwidth of his city
 
1:53 PM
is "bTalk" a good app name choice?
 
Tim
no
 
:( suggest me one then
 
T-Bag
what does your app do?
 
chat
just like whatsapp
 
Name the app so it appears more relevant in search result
 
1:58 PM
but with like chatrooms and games
 
nice, you remembered him :D
 
@Tim thats what i thought he meant
@Taseer so confused , can you suggest me some? gotta upload it
 
Tim
 
hahahahaha
 
Tim
2:00 PM
let's go fish
 
his survival skills were pretty special all along the series
 
@asim Don't rush to upload. Take a good time to set it up. It's tempting but polish it. namelix.com Try this and come up with something
 
Time to go~~
Cya later/Monday everyone!!!! :D
 
bye womp
 
@Taseer been a month its live and working, 42 minor bugs so far, looks pretty stable to me, server side never crashed the whole month
 
2:03 PM
@Taseer pretty good actually (for a cuban)
7K users almost 300USD/month
 
Alright, good info 👍
 
@RaymondArteaga i am intrested, what its about?
 
@asim about using admob in your apps
 
I hope Matrix 4 turns out good
 
2:20 PM
The last one sucked
The first two were great though
 
2:35 PM
What don't you like in the third?
 
I got myself a bluetooth in ear headset
quality of life improved
 
you have a viking inside your inner ear?
gross.
 
good morning, peeps o/
Murat, what did you get?
 
2:53 PM
This one amazon.de/…
 
@Tim Hmm. I was going to say that I need to use my computer during the day but then I remembered I have a handy dandy server thats at less than 90% ussage of its CPU so I can just do it on there.
 
I kind of wish I would have gotten smaller ones like that. Mine have the long tail on them
 
I like that one, it also has a handy dandy power bank
 
that's what I have. They aren't bad
Except, they don't seem to work with go to meeting for some reason
 
I wanted to have one with long play times
and as small as possible
I am also eyballing the Sony WH-1000XM3, but not sure
 
3:14 PM
@GayathriMohan welcome! please start by reading the rules of the room: room-15.github.io
 
Alright it started. We are at 47538538 and need to get to 3000 with around 500 processes per second.
assuming SO doesn't rate limit
 
@Mehdi you know she isn't in here anymore, right? ;)
 
Tim
there is a request limit of 10k per key day iirc
 
Seems like a good contributor though and probably no one around to grant it when she is around
 
@codeMagic yeah I wanted them to receive a notification, before revoking access, so I can clear the access queue
@GayathriMohan feel free to request access again when you want
 
3:30 PM
I got you
 
4:08 PM
making progress 38420739
 
4:48 PM
!stars week
 
 User     | Message (5)                                      | Stars (25)
-------------------------------------------------------------------------
 CptEric  | this discussion is shitty.                       | 6
 Tim      | are you assuming my lifespan?                    | 6
 W0MP3R   | -image-                                          | 5
 W0MP3R   | UOOOOO ►                                         | 4
 JamesBot | New Poll Created: How do you guys like the new f | 4
 
Can you change -image- to the url of the image?
 
@JBis chat.stackoverflow.com/transcript/15?m=48322244#48322244 that's unfortunately still relevant.. :/ feel free to make a PR though
 
Wheres your repo at?
 
Online since 17-01-2020 16:52 (UTC). Running on develop@355b70d. Uptime: 0h
 
4:53 PM
@JBis it's not mine, it's tim's, here github.com/TimCastelijns/Room15Bot
!syncstars
 
oh i thought you forked it ok
 
yes, I cloned it, that's how I got the code locally
 
00:00 - 17:0017:00 - 00:00

« first day (3380 days earlier)      last day (1567 days later) »