no, i updated with the full code: <https://gist.gi...
# android
f
m
funrep: just starting a thread
do you mind if I give some feedback?
f
sure!
m
1st of all
onCreateView()
the
onCreateView
there doesn't have a
?
which is exactly what's causing your issue it seems
f
you mean the return type of it or the call to super.onCreateView?
m
the call
on line 48
oh no... that's not right
f
oh yeah, I forgot to annotate that bundle!
m
cool
try that
f
Didn’t even realize it said onCreate*View*, thanks a lot it works now!
m
if it works then I can give some tips
cool
so, just some ideas
2nd, why not initialize
deliveries
with an empty list from the start so you don't need to declare nullable?
3rd, you can reduce line 36 to
super.onCreate(savedInstanceState ?: Bundle())
if the first parameter is null, the elvis operator
?:
defaults to the second, does that make sense?
f
ah, great!
m
and 4th, I recommend that you read about
lateinit
, but you can use in your
listView
, then you don't need to set it as nullable
but overall, pretty good 😄
f
awesome feedback, thanks a lot!