Some fixes with quick replies
This commit is contained in:
parent
0e3926d002
commit
e5570b2d10
|
@ -37,7 +37,7 @@ public class StatusListAdapter extends BaseStatusListAdapter {
|
||||||
super(statusDrawerParams);
|
super(statusDrawerParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void statusAddReactionClick(Status status){
|
public void statusAddReactionClick(Status status, ViewHolder holder){
|
||||||
EmojiManager.install(new EmojiOneProvider());
|
EmojiManager.install(new EmojiOneProvider());
|
||||||
final EmojiPopup emojiPopup = EmojiPopup.Builder.fromRootView(holder.status_add_reaction).setOnEmojiPopupDismissListener(() -> {
|
final EmojiPopup emojiPopup = EmojiPopup.Builder.fromRootView(holder.status_add_reaction).setOnEmojiPopupDismissListener(() -> {
|
||||||
InputMethodManager imm = (InputMethodManager) context.getSystemService(INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) context.getSystemService(INPUT_METHOD_SERVICE);
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class StatusListAdapter extends BaseStatusListAdapter {
|
||||||
super(statusDrawerParams);
|
super(statusDrawerParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void statusAddReactionClick(Status status) {
|
protected void statusAddReactionClick(Status status, ViewHolder holder) {
|
||||||
((Activity) context).getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
|
((Activity) context).getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,6 @@ public abstract class BaseStatusListAdapter extends RecyclerView.Adapter<Recycle
|
||||||
public static boolean fetch_all_more = false;
|
public static boolean fetch_all_more = false;
|
||||||
private final Object lock = new Object();
|
private final Object lock = new Object();
|
||||||
protected Context context;
|
protected Context context;
|
||||||
protected ViewHolder holder;
|
|
||||||
protected RetrieveFeedsAsyncTask.Type type;
|
protected RetrieveFeedsAsyncTask.Type type;
|
||||||
protected int style;
|
protected int style;
|
||||||
private List<Status> statuses;
|
private List<Status> statuses;
|
||||||
|
@ -609,7 +608,7 @@ public abstract class BaseStatusListAdapter extends RecyclerView.Adapter<Recycle
|
||||||
final String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
final String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
||||||
|
|
||||||
if (viewHolder.getItemViewType() != HIDDEN_STATUS) {
|
if (viewHolder.getItemViewType() != HIDDEN_STATUS) {
|
||||||
holder = (ViewHolder) viewHolder;
|
ViewHolder holder = (ViewHolder) viewHolder;
|
||||||
|
|
||||||
holder.startUpdateTimer();
|
holder.startUpdateTimer();
|
||||||
final Status status = statuses.get(i);
|
final Status status = statuses.get(i);
|
||||||
|
@ -1011,7 +1010,7 @@ public abstract class BaseStatusListAdapter extends RecyclerView.Adapter<Recycle
|
||||||
holder.reactions_view.setLayoutManager(layoutManager);
|
holder.reactions_view.setLayoutManager(layoutManager);
|
||||||
|
|
||||||
|
|
||||||
holder.status_add_reaction.setOnClickListener(v -> statusAddReactionClick(status));
|
holder.status_add_reaction.setOnClickListener(v -> statusAddReactionClick(status, holder));
|
||||||
}
|
}
|
||||||
|
|
||||||
holder.status_cardview_title.setTextColor(ContextCompat.getColor(context, R.color.dark_text_toot_header));
|
holder.status_cardview_title.setTextColor(ContextCompat.getColor(context, R.color.dark_text_toot_header));
|
||||||
|
@ -3016,7 +3015,7 @@ public abstract class BaseStatusListAdapter extends RecyclerView.Adapter<Recycle
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract void statusAddReactionClick(Status status);
|
protected abstract void statusAddReactionClick(Status status, ViewHolder viewHolder);
|
||||||
|
|
||||||
protected abstract void notificationCharts(Status status);
|
protected abstract void notificationCharts(Status status);
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.0.0'
|
classpath 'com.android.tools.build:gradle:4.0.1'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
Loading…
Reference in New Issue