- Dec 12, 2022
- 357
- 2
Hi all,
I'm a bit confused. I have Activities like this:
Main:
Activity1:
When I log tt.IsInitialized here, it is true as expected.
Now I have a class which uses Activity1.tt. That works, I can access the correct values, but Activity1.tt.IsInitialized gives me 'false'. It is definitly called after Activity1 is created (I ensured my with logging anything).
I tried to create a simple app which could show this behaviour, but there it works.
* Has anyone an idea what could happen here?
* Is there anything that coud go wrong if I didn't test if tt is initialized (I only use simple types in that custom type)?
I'm a bit confused. I have Activities like this:
Main:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
When I log tt.IsInitialized here, it is true as expected.
Now I have a class which uses Activity1.tt. That works, I can access the correct values, but Activity1.tt.IsInitialized gives me 'false'. It is definitly called after Activity1 is created (I ensured my with logging anything).
I tried to create a simple app which could show this behaviour, but there it works.
* Has anyone an idea what could happen here?
* Is there anything that coud go wrong if I didn't test if tt is initialized (I only use simple types in that custom type)?
برای دیدن لینک ها باید ثبت نام کنید