Nextrek
Diff Revisions
764
vs
765
for /Android/SmartCharging/SmartCharging/app/src/main/java/it/fedeloper/smartcharging/Controller/RegisterActivity.java
|
@@ -173,10 +173,10 @@ |
173 |
173 |
|
showRegisterFailedToast(getString(R.string.password_tooshort)); |
174 |
174 |
|
return; |
175 |
175 |
|
} |
176 |
|
- |
if (localeEnabled && selectedAvatar == null) { |
177 |
|
- |
showRegisterFailedToast(getString(R.string.avatar_notselected)); |
178 |
|
- |
return; |
179 |
|
- |
} |
|
176 |
+ |
// if (localeEnabled && selectedAvatar == null) { |
|
177 |
+ |
// showRegisterFailedToast(getString(R.string.avatar_notselected)); |
|
178 |
+ |
// return; |
|
179 |
+ |
// } |
180 |
180 |
|
|
181 |
181 |
|
if(localeEnabled){ |
182 |
182 |
|
if(nomeLocale.equals("")){ |
|
@@ -504,7 +504,7 @@ |
504 |
504 |
|
getContentResolver().openInputStream(selectedImage), |
505 |
505 |
|
1000, |
506 |
506 |
|
1000, |
507 |
|
- |
Utils.getRealPathFromURI(RegisterActivity.this, selectedAvatar)); |
|
507 |
+ |
Utils.getRealPathFromURI(RegisterActivity.this, selectedImage)); |
508 |
508 |
|
final ImageButton image = new ImageButton(c); |
509 |
509 |
|
image.setScaleType(ImageView.ScaleType.FIT_CENTER); |
510 |
510 |
|
image.setLayoutParams(new LinearLayout.LayoutParams((int) convertDpToPixel(80), (int) convertDpToPixel(80))); |