Skip to content

Commit 7b9873a

Browse files
committed
Fix status playback and item clickability
1 parent 3263bb4 commit 7b9873a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/com/wmods/wppenhacer/adapter/IGStatusAdapter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public View getView(int position, @Nullable View convertView, @NonNull ViewGroup
6363
holder.setInfo("my_status");
6464
holder.addButton.setVisibility(View.VISIBLE);
6565
} else if (statusInfoClazz.isInstance(item)) {
66+
if (item instanceof View v) {
67+
v.setClickable(false);
68+
}
6669
holder.setInfo(item);
6770
holder.addButton.setVisibility(View.GONE);
6871
}
@@ -131,7 +134,7 @@ public View getView(int position, @Nullable View convertView, @NonNull ViewGroup
131134
try {
132135
var clazz = Unobfuscator.getClassByName("StatusPlaybackActivity", getContext().getClassLoader());
133136
var intent = new Intent(WppCore.getCurrentActivity(), clazz);
134-
intent.putExtra("jid", holder.userJid.getRawLidString());
137+
intent.putExtra("jid", holder.userJid.getRawString());
135138
WppCore.getCurrentActivity().startActivity(intent);
136139
} catch (Exception e) {
137140
Utils.showToast(e.getMessage(), 1);

0 commit comments

Comments
 (0)