diff --git a/src/main/java/com/nextcloud/ui/ChooseAccountDialogFragment.kt b/src/main/java/com/nextcloud/ui/ChooseAccountDialogFragment.kt index bdec3a33ea..fef7037216 100644 --- a/src/main/java/com/nextcloud/ui/ChooseAccountDialogFragment.kt +++ b/src/main/java/com/nextcloud/ui/ChooseAccountDialogFragment.kt @@ -96,7 +96,6 @@ class ChooseAccountDialogFragment : DialogFragment(), AvatarGenerationListener, val adapter = UserListAdapter(activity as BaseActivity, accountManager, getAccountListItems(), - null, this, false, false) diff --git a/src/main/java/com/owncloud/android/ui/activity/ManageAccountsActivity.java b/src/main/java/com/owncloud/android/ui/activity/ManageAccountsActivity.java index 67648fdf0b..d92194ee0c 100644 --- a/src/main/java/com/owncloud/android/ui/activity/ManageAccountsActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/ManageAccountsActivity.java @@ -32,7 +32,6 @@ import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; -import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; @@ -74,8 +73,6 @@ import javax.inject.Inject; import androidx.appcompat.app.ActionBar; import androidx.appcompat.widget.PopupMenu; -import androidx.core.content.ContextCompat; -import androidx.core.graphics.drawable.DrawableCompat; import androidx.fragment.app.FragmentManager; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; @@ -108,7 +105,6 @@ public class ManageAccountsActivity extends FileActivity implements UserListAdap private ServiceConnection uploadServiceConnection; private Set originalUsers; private String originalCurrentUser; - private Drawable tintedCheck; private ArbitraryDataProvider arbitraryDataProvider; private boolean multipleAccountsSupported; @@ -120,10 +116,6 @@ public class ManageAccountsActivity extends FileActivity implements UserListAdap protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - tintedCheck = DrawableCompat.wrap(ContextCompat.getDrawable(this, R.drawable.account_circle_white)); - int tint = ThemeUtils.elementColor(this); - DrawableCompat.setTint(tintedCheck, tint); - setContentView(R.layout.accounts_layout); recyclerView = findViewById(R.id.account_list); @@ -158,7 +150,6 @@ public class ManageAccountsActivity extends FileActivity implements UserListAdap userListAdapter = new UserListAdapter(this, accountManager, getUserListItems(), - tintedCheck, this, multipleAccountsSupported, true); @@ -306,7 +297,6 @@ public class ManageAccountsActivity extends FileActivity implements UserListAdap this, accountManager, getUserListItems(), - tintedCheck, this, multipleAccountsSupported, false); recyclerView.setAdapter(userListAdapter); @@ -358,7 +348,6 @@ public class ManageAccountsActivity extends FileActivity implements UserListAdap userListAdapter = new UserListAdapter(this, accountManager, userListItemArray, - tintedCheck, this, multipleAccountsSupported, false); recyclerView.setAdapter(userListAdapter); diff --git a/src/main/java/com/owncloud/android/ui/adapter/UserListAdapter.java b/src/main/java/com/owncloud/android/ui/adapter/UserListAdapter.java index 40013d93ad..56cf04f879 100644 --- a/src/main/java/com/owncloud/android/ui/adapter/UserListAdapter.java +++ b/src/main/java/com/owncloud/android/ui/adapter/UserListAdapter.java @@ -60,7 +60,6 @@ public class UserListAdapter extends RecyclerView.Adapter values; private Listener accountListAdapterListener; - private Drawable tintedCheck; private UserAccountManager accountManager; public static final String KEY_DISPLAY_NAME = "DISPLAY_NAME"; @@ -72,7 +71,6 @@ public class UserListAdapter extends RecyclerView.Adapter values, - Drawable tintedCheck, ClickListener clickListener, boolean showAddAccount, boolean showDotsMenu) { @@ -83,7 +81,6 @@ public class UserListAdapter extends RecyclerView.Adapter + android:src="@drawable/ic_check_circle" />