Small fix in login

This commit is contained in:
Thomas 2022-12-12 15:50:47 +01:00
parent 173043a684
commit 9846d9ce79
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ public class LoginActivity extends BaseActivity {
public static boolean requestedAdmin;
@SuppressLint("ApplySharedPref")
public static void proceedLogin(Activity activity, Account account) {
public void proceedLogin(Activity activity, Account account) {
new Thread(() -> {
try {
//update the database
@ -74,8 +74,8 @@ public class LoginActivity extends BaseActivity {
//The user is now authenticated, it will be redirected to MainActivity
Runnable myRunnable = () -> {
Intent mainActivity = new Intent(activity, MainActivity.class);
activity.startActivity(mainActivity);
activity.finish();
startActivity(mainActivity);
finish();
};
mainHandler.post(myRunnable);
} catch (DBException e) {