|
|
|
@ -71,6 +71,7 @@ import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
|
import androidx.appcompat.widget.LinearLayoutCompat;
|
|
|
|
|
import androidx.appcompat.widget.PopupMenu;
|
|
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
|
|
|
import androidx.constraintlayout.widget.ConstraintSet;
|
|
|
|
|
import androidx.core.app.ActivityOptionsCompat;
|
|
|
|
|
import androidx.core.content.ContextCompat;
|
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
@ -413,6 +414,14 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|
|
|
|
boolean extraFeatures = sharedpreferences.getBoolean(context.getString(R.string.SET_EXTAND_EXTRA_FEATURES) + MainActivity.currentUserID + MainActivity.currentInstance, false);
|
|
|
|
|
boolean displayQuote = sharedpreferences.getBoolean(context.getString(R.string.SET_DISPLAY_QUOTES) + MainActivity.currentUserID + MainActivity.currentInstance, true);
|
|
|
|
|
boolean displayReactions = sharedpreferences.getBoolean(context.getString(R.string.SET_DISPLAY_REACTIONS) + MainActivity.currentUserID + MainActivity.currentInstance, true);
|
|
|
|
|
boolean compactButtons = sharedpreferences.getBoolean(context.getString(R.string.SET_DISPLAY_COMPACT_ACTION_BUTTON), false);
|
|
|
|
|
|
|
|
|
|
if (compactButtons) {
|
|
|
|
|
ConstraintSet set = new ConstraintSet();
|
|
|
|
|
set.clone(holder.binding.actionButtons);
|
|
|
|
|
set.clear(R.id.status_emoji, ConstraintSet.END);
|
|
|
|
|
set.applyTo(holder.binding.actionButtons);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (removeLeftMargin) {
|
|
|
|
|
LinearLayoutCompat.MarginLayoutParams p = (LinearLayoutCompat.MarginLayoutParams) holder.binding.spoiler.getLayoutParams();
|
|
|
|
|