fix compilation
This commit is contained in:
parent
b9f5286898
commit
3ddf8d33f0
|
@ -4234,7 +4234,7 @@ public class ConversationFragment extends XmppFragment
|
||||||
if (primaryColor != -1) return primaryColor;
|
if (primaryColor != -1) return primaryColor;
|
||||||
|
|
||||||
TypedValue typedValue = new TypedValue();
|
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;
|
primaryColor = typedValue.data;
|
||||||
|
|
||||||
return primaryColor;
|
return primaryColor;
|
||||||
|
|
|
@ -114,7 +114,7 @@ public class ConversationsOverviewFragment extends XmppFragment {
|
||||||
super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive);
|
super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive);
|
||||||
if(actionState != ItemTouchHelper.ACTION_STATE_IDLE){
|
if(actionState != ItemTouchHelper.ACTION_STATE_IDLE){
|
||||||
Paint paint = new Paint();
|
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);
|
paint.setStyle(Paint.Style.FILL);
|
||||||
c.drawRect(viewHolder.itemView.getLeft(),viewHolder.itemView.getTop()
|
c.drawRect(viewHolder.itemView.getLeft(),viewHolder.itemView.getTop()
|
||||||
,viewHolder.itemView.getRight(),viewHolder.itemView.getBottom(), paint);
|
,viewHolder.itemView.getRight(),viewHolder.itemView.getBottom(), paint);
|
||||||
|
|
|
@ -1149,7 +1149,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
||||||
if (primaryColor != -1) return primaryColor;
|
if (primaryColor != -1) return primaryColor;
|
||||||
|
|
||||||
TypedValue typedValue = new TypedValue();
|
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;
|
primaryColor = typedValue.data;
|
||||||
|
|
||||||
return primaryColor;
|
return primaryColor;
|
||||||
|
|
Loading…
Reference in a new issue