-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature/sample kotlin #155
base: develop
Are you sure you want to change the base?
Conversation
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.
I don't have the time to fully review and test PR this weekend, but will do it ASAP.
override fun doOnCreated() { | ||
findViewById<View>(R.id.btnDismiss)!!.setOnClickListener({ dismiss() }) | ||
} | ||
|
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.
Empty line here.
} | ||
|
||
override fun onStopRequestUpdate() { | ||
|
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.
For consistency this method should have comment, has the others.
} | ||
|
||
override fun onStopRequestUpdate() { | ||
|
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.
For consistency this method should have comment, has the others.
disable 'InvalidPackage' | ||
} | ||
} | ||
|
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.
empty line
|
||
val btnAnalyticsSendEvent = findViewById<Button>(R.id.btnAnalyticsSendEvent) | ||
btnAnalyticsSendEvent!!.setOnClickListener { | ||
/* |
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.
Comment is mal formatted.
} | ||
|
||
override fun onStopRequestUpdate() { | ||
|
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.
miss the comment.
when (locationError) { | ||
LocationError.DISABLED -> mTxtInfoUpdates!!.text = "Error: Location disabled" | ||
LocationError.TIMEOUT -> mTxtInfoUpdates!!.text = "Error: Timeout getting location" | ||
else -> { |
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.
the else is mandatory here?
fun setOnErrorClickListener(listener: View.OnClickListener) { | ||
mListener = listener | ||
} | ||
|
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.
empty line
mRclItems!!.visibility = View.VISIBLE | ||
mBtnTryAgain!!.visibility = View.GONE | ||
mTxtMessage!!.visibility = View.GONE | ||
|
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.
empty line
override fun doOnCreated() { | ||
activity!!.setTitle(R.string.sample_utils) | ||
|
||
mBtnCheckPlayServicesExists = findViewById(R.id.btnCheckPlayservicesExists) |
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 join the lines that has findViewById
@extmkv would like to hear your opinion on this since Im not fluent with the language. |
I was challenged by @NunoSSilva to create an kotlin sample for adal, so here it is. I add kotlin examples to readmes too.