Adding, customizing and modifying MemorizingTrustManager.
This commit is contained in:
@@ -21,6 +21,7 @@ import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import com.tooltip.Tooltip;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.mian.gitnex.R;
|
||||
import org.mian.gitnex.clients.RetrofitClient;
|
||||
import org.mian.gitnex.helpers.Toasty;
|
||||
@@ -454,12 +455,9 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(@NonNull Call<GiteaVersion> callVersion, Throwable t) {
|
||||
|
||||
Log.e("onFailure-version", t.toString());
|
||||
|
||||
public void onFailure(@NonNull Call<GiteaVersion> callVersion, @NotNull Throwable throwable) {
|
||||
Log.e("onFailure-version", throwable.toString());
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@@ -483,7 +481,6 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
||||
if (response.isSuccessful()) {
|
||||
|
||||
if (response.code() == 200) {
|
||||
|
||||
tinyDb.putBoolean("loggedInMode", true);
|
||||
assert userDetails != null;
|
||||
tinyDb.putString(userDetails.getLogin() + "-token", loginToken_);
|
||||
|
||||
Reference in New Issue
Block a user