-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base class clenup #23
base: develop
Are you sure you want to change the base?
Conversation
b1dc8fa
to
c8c593f
Compare
… of "composition over inheritance".
c8c593f
to
7b2340b
Compare
…n favor of "composition over inheritance".
… of "composition over inheritance".
40b1176
to
fa80964
Compare
} | ||
|
||
override fun getValue(thisRef: Fragment, property: KProperty<*>): T { | ||
val binding = binding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use different names
} | ||
|
||
is NavigationCommand.ToDeepLink -> { | ||
(activity as? MainActivity) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not likely for single activity apps but someone can create another activity and this interface will be dependent on MainActivity, maybe we should consider an interface like "NavigatableActivity" or something else.
model.message?.let { setMessage(it) } | ||
model.messageInt?.let { setMessage(it) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
messageRes instead Int
All base classes (activity, fragment, viewModel) are removed in favor of "composition over inheritance".