fix compilation

This commit is contained in:
kosyak 2023-12-17 22:16:12 +01:00
parent b9f5286898
commit 3ddf8d33f0
3 changed files with 3 additions and 3 deletions

View file

@ -4234,7 +4234,7 @@ public class ConversationFragment extends XmppFragment
if (primaryColor != -1) return primaryColor;
TypedValue typedValue = new TypedValue();
getContext().getTheme().resolveAttribute(R.attr.colorPrimary, typedValue, true);
getContext().getTheme().resolveAttribute(androidx.appcompat.R.attr.colorPrimary, typedValue, true);
primaryColor = typedValue.data;
return primaryColor;

View file

@ -114,7 +114,7 @@ public class ConversationsOverviewFragment extends XmppFragment {
super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive);
if(actionState != ItemTouchHelper.ACTION_STATE_IDLE){
Paint paint = new Paint();
paint.setColor(StyledAttributes.getColor(activity,R.attr.colorPrimaryDark));
paint.setColor(StyledAttributes.getColor(activity, androidx.appcompat.R.attr.colorPrimaryDark));
paint.setStyle(Paint.Style.FILL);
c.drawRect(viewHolder.itemView.getLeft(),viewHolder.itemView.getTop()
,viewHolder.itemView.getRight(),viewHolder.itemView.getBottom(), paint);

View file

@ -1149,7 +1149,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
if (primaryColor != -1) return primaryColor;
TypedValue typedValue = new TypedValue();
getContext().getTheme().resolveAttribute(R.attr.colorPrimary, typedValue, true);
getContext().getTheme().resolveAttribute(androidx.appcompat.R.attr.colorPrimary, typedValue, true);
primaryColor = typedValue.data;
return primaryColor;