Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit 9a085be

Browse files
committed
fix #130
1 parent 1a42a77 commit 9a085be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ReblogOrReplyLineStatusDisplayItem.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
package org.joinmastodon.android.ui.displayitems;
22

3+
import static org.joinmastodon.android.MastodonApp.context;
4+
35
import android.app.Activity;
46
import android.graphics.drawable.Drawable;
57
import android.os.Build;
68
import android.text.SpannableStringBuilder;
9+
import android.util.TypedValue;
710
import android.view.View;
811
import android.view.ViewGroup;
912
import android.widget.TextView;
@@ -38,6 +41,8 @@ public ReblogOrReplyLineStatusDisplayItem(String parentID, BaseStatusListFragmen
3841
emojiHelper.setText(ssb);
3942
this.icon=icon;
4043
this.handleClick=handleClick;
44+
TypedValue outValue = new TypedValue();
45+
context.getTheme().resolveAttribute(android.R.attr.selectableItemBackground, outValue, true);
4146
}
4247

4348
@Override
@@ -67,6 +72,8 @@ public void onBind(ReblogOrReplyLineStatusDisplayItem item){
6772
text.setText(item.text);
6873
text.setCompoundDrawablesRelativeWithIntrinsicBounds(item.icon, 0, 0, 0);
6974
if(item.handleClick!=null) text.setOnClickListener(item.handleClick);
75+
text.setEnabled(!item.inset);
76+
text.setClickable(!item.inset);
7077
if(Build.VERSION.SDK_INT<Build.VERSION_CODES.N)
7178
UiUtils.fixCompoundDrawableTintOnAndroid6(text);
7279
}

0 commit comments

Comments
 (0)