Added changes to readme.md + comments. (#5230)

* Update README.md

* Update LatLng.java

* Update LoginActivity.java

* Updated LoginActivity.java to feature javadoc syntax
This commit is contained in:
tpettwa1 2023-06-06 21:31:53 -04:00 committed by GitHub
parent cbc54c71d9
commit 3f664d62f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View file

@ -147,7 +147,11 @@ public class LoginActivity extends AccountAuthenticatorActivity {
loginCredentials.setVisibility(View.GONE);
}
}
/**
* Hides the keyboard if the user's focus is not on the password (hasFocus is false).
* @param view The keyboard
* @param hasFocus Set to true if the keyboard has focus
*/
@OnFocusChange(R.id.login_password)
void onPasswordFocusChanged(View view, boolean hasFocus) {
if (!hasFocus) {

View file

@ -38,7 +38,10 @@ public class LatLng implements Parcelable {
this.latitude = Math.max(-90.0D, Math.min(90.0D, latitude));
this.accuracy = accuracy;
}
/**
* An alternate constructor for this class.
* @param in A parcelable which contains the latitude, longitude, and accuracy
*/
public LatLng(Parcel in) {
latitude = in.readDouble();
longitude = in.readDouble();