Revert "Beige navigation menu"

This reverts commit be5a5cddce.
This commit is contained in:
M66B
2020-09-25 12:14:16 +02:00
parent c13cb867f3
commit 5819846b19
6 changed files with 14 additions and 51 deletions

View File

@@ -31,7 +31,6 @@ import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleOwner;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import androidx.preference.PreferenceManager;
@@ -51,7 +50,6 @@ public class AdapterNavAccount extends RecyclerView.Adapter<AdapterNavAccount.Vi
private Context context;
private LifecycleOwner owner;
private LayoutInflater inflater;
private boolean beige;
private int colorUnread;
private int textColorSecondary;
@@ -176,11 +174,10 @@ public class AdapterNavAccount extends RecyclerView.Adapter<AdapterNavAccount.Vi
}
}
AdapterNavAccount(Context context, LifecycleOwner owner, boolean beige) {
AdapterNavAccount(Context context, LifecycleOwner owner) {
this.context = context;
this.owner = owner;
this.inflater = LayoutInflater.from(context);
this.beige = beige;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean highlight_unread = prefs.getBoolean("highlight_unread", true);
@@ -279,11 +276,7 @@ public class AdapterNavAccount extends RecyclerView.Adapter<AdapterNavAccount.Vi
@Override
@NonNull
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = inflater.inflate(R.layout.item_nav, parent, false);
if (beige)
view.setBackgroundColor(
ContextCompat.getColor(context, R.color.lightColorBackground_cards_beige));
return new ViewHolder(view);
return new ViewHolder(inflater.inflate(R.layout.item_nav, parent, false));
}
@Override