Small fix in login

maths
Thomas 2 years ago
parent 173043a684
commit 9846d9ce79

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

Loading…
Cancel
Save