mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 01:08:48 +02:00
Fix spaces
This commit is contained in:
parent
5afc9c6df3
commit
fe5da24483
4 changed files with 6 additions and 6 deletions
|
@ -45,7 +45,7 @@ public class HifiUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String absoluteHifiAssetUrl(String urlString, String baseUrl) {
|
public String absoluteHifiAssetUrl(String urlString, String baseUrl) {
|
||||||
urlString = urlString.trim();
|
urlString = urlString.trim();
|
||||||
if (!urlString.isEmpty()) {
|
if (!urlString.isEmpty()) {
|
||||||
URI uri;
|
URI uri;
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -251,7 +251,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
||||||
*/
|
*/
|
||||||
private void updateProfilePicture(String username) {
|
private void updateProfilePicture(String username) {
|
||||||
mProfilePicture.setImageResource(PROFILE_PICTURE_PLACEHOLDER);
|
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());
|
Picasso.get().load(url).into(mProfilePicture, new RoundProfilePictureCallback());
|
||||||
} } ).execute(username);
|
} } ).execute(username);
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,11 +72,11 @@ public class LoginFragment extends Fragment {
|
||||||
public void afterTextChanged(Editable editable) {
|
public void afterTextChanged(Editable editable) {
|
||||||
if (!ignoreNextChange) {
|
if (!ignoreNextChange) {
|
||||||
ignoreNextChange = true;
|
ignoreNextChange = true;
|
||||||
boolean spaceFound=false;
|
boolean spaceFound = false;
|
||||||
for (int i=0; i< editable.length(); i++) {
|
for (int i = 0; i < editable.length(); i++) {
|
||||||
if (editable.charAt(i) == ' ') {
|
if (editable.charAt(i) == ' ') {
|
||||||
spaceFound=true;
|
spaceFound=true;
|
||||||
editable.delete(i, i+1);
|
editable.delete(i, i + 1);
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||||
android:background="@color/colorPrimary"
|
android:background="@color/colorPrimary"
|
||||||
tools:context="io.highfidelity.hifiinterface.MainActivity"
|
tools:context="io.highfidelity.hifiinterface.MainActivity"
|
||||||
tools:showIn="@layout/activity_home">
|
tools:showIn="@layout/activity_home">
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue