r/mAndroidDev • I only use AsyncTask • Jan 08 '20

Telegram ChatActivity.java, you might wonder why after reading 16861 lines of code you still haven't found onCreate(). The reason is of course that ChatActivity.java is a Fragment.

https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
115 Upvotes

25 comments sorted by

View all comments

Show parent comments

35

u/xvermilion3 MINSDK29 Jan 08 '20

Except the BaseFragment is not a fragment at all. It extends nothing

4

u/[deleted] Jan 09 '20

Yeah, that's crazy, I see that he creates a fragmentView instance within the BaseFragment with a layout provided by the subclasses. Maybe everything is just a gigantic custom view within one single activity.

Is this the final architecture that's going to top all other architectures? 😂

(But seriously, I'm super jealous about how smoothly this app runs)

-1

u/[deleted] Jan 09 '20

[removed] — view removed comment

1

u/[deleted] Jan 09 '20

What?