mirror of
https://github.com/overte-org/overte.git
synced 2025-06-18 09:20:48 +02:00
Fix spaces
This commit is contained in:
parent
5afc9c6df3
commit
fe5da24483
4 changed files with 6 additions and 6 deletions
|
@ -251,7 +251,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
*/
|
||||
private void updateProfilePicture(String username) {
|
||||
mProfilePicture.setImageResource(PROFILE_PICTURE_PLACEHOLDER);
|
||||
new DownloadProfileImageTask(url -> { if (url!=null && !url.isEmpty()) {
|
||||
new DownloadProfileImageTask(url -> { if (url != null && !url.isEmpty()) {
|
||||
Picasso.get().load(url).into(mProfilePicture, new RoundProfilePictureCallback());
|
||||
} } ).execute(username);
|
||||
}
|
||||
|
|
|
@ -72,11 +72,11 @@ public class LoginFragment extends Fragment {
|
|||
public void afterTextChanged(Editable editable) {
|
||||
if (!ignoreNextChange) {
|
||||
ignoreNextChange = true;
|
||||
boolean spaceFound=false;
|
||||
for (int i=0; i< editable.length(); i++) {
|
||||
boolean spaceFound = false;
|
||||
for (int i = 0; i < editable.length(); i++) {
|
||||
if (editable.charAt(i) == ' ') {
|
||||
spaceFound=true;
|
||||
editable.delete(i, i+1);
|
||||
editable.delete(i, i + 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue