Skip to content

Commit 5eb2885

Browse files
committed
Minor improvements
1 parent 37b93d4 commit 5eb2885

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

app/src/main/java/com/donnfelker/android/bootstrap/authenticator/ApiKeyProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public class ApiKeyProvider {
2626
/**
2727
* This call blocks, so shouldn't be called on the UI thread
2828
*
29-
* @return API key to be used for authorization with a {@link com.donnfelker.android.bootstrap.core.BootstrapService} instance
29+
* @return API key to be used for authorization with a
30+
* {@link com.donnfelker.android.bootstrap.core.BootstrapService} instance
3031
* @throws AccountsException
3132
* @throws IOException
3233
*/

app/src/main/java/com/donnfelker/android/bootstrap/authenticator/BootstrapAccountAuthenticator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public BootstrapAccountAuthenticator(final Context context) {
3232
}
3333

3434
/*
35-
* The user has requested to add a new account to the system. We return an intent that will launch our login screen
36-
* if the user has not logged in yet, otherwise our activity will just pass the user's credentials on to the account
37-
* manager.
35+
* The user has requested to add a new account to the system. We return an intent that will
36+
* launch our login screen if the user has not logged in yet, otherwise our activity will
37+
* just pass the user's credentials on to the account manager.
3838
*/
3939
@Override
4040
public Bundle addAccount(final AccountAuthenticatorResponse response, final String accountType,

app/src/main/java/com/donnfelker/android/bootstrap/core/BootstrapService.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ private HttpRequest addCredentialsTo(final HttpRequest request) {
140140
request.header(HEADER_PARSE_APP_ID, PARSE_APP_ID);
141141

142142
/*
143-
NOTE: This may be where you want to add a header for the api token that was saved when you
144-
logged in. In the bootstrap sample this is where we are saving the session id as the token.
145-
If you actually had received a token you'd take the "apiKey" (aka: token) and add it to the
146-
header or form values before you make your requests.
147-
148-
Add the user name and password to the request here if your service needs username or password for each
149-
request. You can do this like this:
150-
request.basic("myusername", "mypassword");
143+
* NOTE: This may be where you want to add a header for the api token that was saved when
144+
* you logged in. In the bootstrap sample this is where we are saving the session id as
145+
* the token. If you actually had received a token you'd take the "apiKey" (aka: token)
146+
* and add it to the header or form values before you make your requests.
147+
*
148+
* Add the user name and password to the request here if your service needs username or
149+
* password for each request. You can do this like this:
150+
* request.basic("myusername", "mypassword");
151151
*/
152152

153153
return request;

app/src/main/java/com/donnfelker/android/bootstrap/core/User.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
public class User implements Serializable {
88

9-
109
private static final long serialVersionUID = -7495897652017488896L;
1110

1211
protected String firstName;

0 commit comments

Comments
 (0)