Kaynağa Gözat

Some fixes with quick replies

tags/2.37.0-beta-2
Thomas 9 ay önce
ebeveyn
işleme
e5570b2d10
4 değiştirilmiş dosya ile 6 ekleme ve 7 silme
  1. +1
    -1
      app/src/common/java/app/fedilab/android/drawers/StatusListAdapter.java
  2. +1
    -1
      app/src/lite/java/app/fedilab/android/drawers/StatusListAdapter.java
  3. +3
    -4
      app/src/main/java/app/fedilab/android/drawers/BaseStatusListAdapter.java
  4. +1
    -1
      build.gradle

+ 1
- 1
app/src/common/java/app/fedilab/android/drawers/StatusListAdapter.java Dosyayı Görüntüle

@@ -37,7 +37,7 @@ public class StatusListAdapter extends BaseStatusListAdapter {
super(statusDrawerParams);
}

public void statusAddReactionClick(Status status){
public void statusAddReactionClick(Status status, ViewHolder holder){
EmojiManager.install(new EmojiOneProvider());
final EmojiPopup emojiPopup = EmojiPopup.Builder.fromRootView(holder.status_add_reaction).setOnEmojiPopupDismissListener(() -> {
InputMethodManager imm = (InputMethodManager) context.getSystemService(INPUT_METHOD_SERVICE);


+ 1
- 1
app/src/lite/java/app/fedilab/android/drawers/StatusListAdapter.java Dosyayı Görüntüle

@@ -25,7 +25,7 @@ public class StatusListAdapter extends BaseStatusListAdapter {
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);
}



+ 3
- 4
app/src/main/java/app/fedilab/android/drawers/BaseStatusListAdapter.java Dosyayı Görüntüle

@@ -202,7 +202,6 @@ public abstract class BaseStatusListAdapter extends RecyclerView.Adapter<Recycle
public static boolean fetch_all_more = false;
private final Object lock = new Object();
protected Context context;
protected ViewHolder holder;
protected RetrieveFeedsAsyncTask.Type type;
protected int style;
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);

if (viewHolder.getItemViewType() != HIDDEN_STATUS) {
holder = (ViewHolder) viewHolder;
ViewHolder holder = (ViewHolder) viewHolder;

holder.startUpdateTimer();
final Status status = statuses.get(i);
@@ -1011,7 +1010,7 @@ public abstract class BaseStatusListAdapter extends RecyclerView.Adapter<Recycle
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));
@@ -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);



+ 1
- 1
build.gradle Dosyayı Görüntüle

@@ -6,7 +6,7 @@ buildscript {
google()
}
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
// in the individual module build.gradle files


Yükleniyor…
İptal
Kaydet