Skip to content

Commit 3f664d6

Browse files
authored
Added changes to readme.md + comments. (commons-app#5230)
* Update README.md * Update LatLng.java * Update LoginActivity.java * Updated LoginActivity.java to feature javadoc syntax
1 parent cbc54c7 commit 3f664d6

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons. Download the app [here][1], or view our [website][2].
88

9-
Initially started by the Wikimedia Foundation, this app is now maintained by grantees and volunteers of the Wikimedia community. Anyone is welcome to improve it, just choose among the [open issues][3] and send us a pull request :-)
9+
Initially started by the Wikimedia Foundation, this app is now maintained by grantees and volunteers of the Wikimedia community. Anyone is welcome to improve it, just choose among the [open issues][3] and send us a pull request! :-)
1010

1111
<a href="https://f-droid.org/repository/browse/?fdid=fr.free.nrw.commons" target="_blank">
1212
<img src="https://upload.wikimedia.org/wikipedia/commons/archive/9/96/20200131184248%21%22Get_it_on_F-droid%22_Badge.png" alt="Get it on F-Droid" height="90"/></a>
@@ -15,7 +15,7 @@ Initially started by the Wikimedia Foundation, this app is now maintained by gra
1515

1616
## Documentation
1717

18-
We try to have an extensive documentation at our [documentation repository][4]:
18+
Our [documentation repository][4] contains extensive documentation for users, contributors, and developers alike:
1919

2020
* [User Documentation][5]
2121
* [Contributor Documentation][6]

app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ public void onCreate(Bundle savedInstanceState) {
147147
loginCredentials.setVisibility(View.GONE);
148148
}
149149
}
150-
150+
/**
151+
* Hides the keyboard if the user's focus is not on the password (hasFocus is false).
152+
* @param view The keyboard
153+
* @param hasFocus Set to true if the keyboard has focus
154+
*/
151155
@OnFocusChange(R.id.login_password)
152156
void onPasswordFocusChanged(View view, boolean hasFocus) {
153157
if (!hasFocus) {

app/src/main/java/fr/free/nrw/commons/location/LatLng.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public LatLng(double latitude, double longitude, float accuracy) {
3838
this.latitude = Math.max(-90.0D, Math.min(90.0D, latitude));
3939
this.accuracy = accuracy;
4040
}
41-
41+
/**
42+
* An alternate constructor for this class.
43+
* @param in A parcelable which contains the latitude, longitude, and accuracy
44+
*/
4245
public LatLng(Parcel in) {
4346
latitude = in.readDouble();
4447
longitude = in.readDouble();

0 commit comments

Comments
 (0)