Release 1.4.1
This commit is contained in:
parent
5872f5c99f
commit
62af5c54aa
|
@ -10,8 +10,8 @@ android {
|
|||
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 15
|
||||
versionName "1.4.0"
|
||||
versionCode 16
|
||||
versionName "1.4.1"
|
||||
multiDexEnabled true
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
- Quelques améliorations
|
||||
- Corrige un bug lors de la connexion
|
|
@ -1,3 +1 @@
|
|||
- Sepia search
|
||||
- Some fixes with overlay
|
||||
- Fix issue when changing the instance
|
||||
- Fix an issue with the authentication of some accounts
|
|
@ -134,6 +134,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||
String[] emailArray = login_uid.getText().toString().split("@");
|
||||
if (emailArray.length > 1 && !Arrays.asList(Helper.valideEmails).contains(emailArray[1])) {
|
||||
Toasty.error(LoginActivity.this, getString(R.string.email_error_domain, emailArray[1])).show();
|
||||
connectionButton.setEnabled(true);
|
||||
return;
|
||||
}
|
||||
host = emailArray[1];
|
||||
|
@ -141,6 +142,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||
} else {
|
||||
if (login_instance == null || login_instance.getText() == null || login_instance.getText().toString().trim().length() == 0) {
|
||||
Toasty.error(LoginActivity.this, getString(R.string.not_valide_instance)).show();
|
||||
connectionButton.setEnabled(true);
|
||||
return;
|
||||
}
|
||||
instance = host = login_instance.getText().toString().trim().toLowerCase();
|
||||
|
@ -215,6 +217,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||
} catch (Error error) {
|
||||
Error.displayError(LoginActivity.this, error);
|
||||
error.printStackTrace();
|
||||
runOnUiThread(() -> connectionButton.setEnabled(true));
|
||||
}
|
||||
}
|
||||
}).start();
|
||||
|
|
|
@ -226,6 +226,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
editor.putString(Helper.PREF_KEY_NAME, account.getUsername());
|
||||
//Sync languages from server
|
||||
List<String> videoLanguageServer = userMe.getVideoLanguages();
|
||||
if( videoLanguageServer != null) {
|
||||
Set<String> videoLanguageServerSet = new TreeSet<>(videoLanguageServer);
|
||||
videoLanguageServerSet.addAll(videoLanguageServer);
|
||||
Set<String> videoLanguageLocal = sharedpreferences.getStringSet(getString(R.string.set_video_language_choice), null);
|
||||
|
@ -235,6 +236,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
editor.putStringSet(getString(R.string.set_video_language_choice), videoLanguageServerSet);
|
||||
editor.apply();
|
||||
}
|
||||
}
|
||||
} catch (Error error) {
|
||||
error.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue