From 0c92eb3fa2d165c0bb67c0dff1b25fb48f15c9b6 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Sun, 13 Sep 2020 06:48:30 +0200 Subject: [PATCH] Fix active account selector (#687) Merge branch 'master' into fix-active-account-selector Merge branch 'master' of codeberg.org:gitnex/GitNex into master Fix active account selector Merge branch 'master' of codeberg.org:gitnex/GitNex into master Merge branch 'master' of codeberg.org:gitnex/GitNex into master endline Co-authored-by: M M Arif Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/687 --- .../mian/gitnex/adapters/UserAccountsListDialogAdapter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/mian/gitnex/adapters/UserAccountsListDialogAdapter.java b/app/src/main/java/org/mian/gitnex/adapters/UserAccountsListDialogAdapter.java index af553c46..853bfed2 100644 --- a/app/src/main/java/org/mian/gitnex/adapters/UserAccountsListDialogAdapter.java +++ b/app/src/main/java/org/mian/gitnex/adapters/UserAccountsListDialogAdapter.java @@ -62,6 +62,9 @@ public class UserAccountsListDialogAdapter extends ArrayAdapter { if(tinyDB.getInt("currentActiveAccountId") == currentItem.getAccountId()) { activeAccount.setVisibility(View.VISIBLE); } + else { + activeAccount.setVisibility(View.GONE); + } PicassoService .getInstance(mCtx).get().load(url + "img/favicon.png").placeholder(R.drawable.loader_animated).transform(new RoundedTransformation(8, 0)).resize(120, 120).centerCrop().into(profileImage);