File tree 2 files changed +9
-9
lines changed
app/src/main/java/fr/free/nrw/commons
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,10 @@ class CommonsApplication : MultiDexApplication() {
306
306
.addFlags(Intent .FLAG_ACTIVITY_NEW_TASK )
307
307
308
308
if (loginMessage != null ) {
309
- loginIntent.putExtra(loginMessageIntentKey , loginMessage)
309
+ loginIntent.putExtra(LOGIN_MESSAGE_INTENT_KEY , loginMessage)
310
310
}
311
311
if (userName != null ) {
312
- loginIntent.putExtra(loginUsernameIntentKey , userName)
312
+ loginIntent.putExtra(LOGIN_USERNAME_INTENT_KEY , userName)
313
313
}
314
314
315
315
ctx.startActivity(loginIntent)
@@ -356,9 +356,9 @@ class CommonsApplication : MultiDexApplication() {
356
356
}
357
357
358
358
companion object {
359
- // TODO should be uppercase
360
- const val loginMessageIntentKey : String = " loginMessage"
361
- const val loginUsernameIntentKey : String = " loginUsername"
359
+
360
+ const val LOGIN_MESSAGE_INTENT_KEY : String = " loginMessage"
361
+ const val LOGIN_USERNAME_INTENT_KEY : String = " loginUsername"
362
362
363
363
const val IS_LIMITED_CONNECTION_MODE_ENABLED : String = " is_limited_connection_mode_enabled"
364
364
Original file line number Diff line number Diff line change 50
50
import static android .view .KeyEvent .KEYCODE_ENTER ;
51
51
import static android .view .View .VISIBLE ;
52
52
import static android .view .inputmethod .EditorInfo .IME_ACTION_DONE ;
53
- import static fr .free .nrw .commons .CommonsApplication .loginMessageIntentKey ;
54
- import static fr .free .nrw .commons .CommonsApplication .loginUsernameIntentKey ;
53
+ import static fr .free .nrw .commons .CommonsApplication .LOGIN_MESSAGE_INTENT_KEY ;
54
+ import static fr .free .nrw .commons .CommonsApplication .LOGIN_USERNAME_INTENT_KEY ;
55
55
56
56
public class LoginActivity extends AccountAuthenticatorActivity {
57
57
@@ -94,8 +94,8 @@ public void onCreate(Bundle savedInstanceState) {
94
94
binding = ActivityLoginBinding .inflate (getLayoutInflater ());
95
95
setContentView (binding .getRoot ());
96
96
97
- String message = getIntent ().getStringExtra (loginMessageIntentKey );
98
- String username = getIntent ().getStringExtra (loginUsernameIntentKey );
97
+ String message = getIntent ().getStringExtra (LOGIN_MESSAGE_INTENT_KEY );
98
+ String username = getIntent ().getStringExtra (LOGIN_USERNAME_INTENT_KEY );
99
99
100
100
binding .loginUsername .addTextChangedListener (textWatcher );
101
101
binding .loginPassword .addTextChangedListener (textWatcher );
You can’t perform that action at this time.
0 commit comments