Added resize info button

pull/194/merge
M66B 3 years ago
parent 5488b980b9
commit f591b3af45

@ -6812,6 +6812,7 @@ public class FragmentCompose extends FragmentBase {
final ImageView ivType = dview.findViewById(R.id.ivType); final ImageView ivType = dview.findViewById(R.id.ivType);
final RadioGroup rgAction = dview.findViewById(R.id.rgAction); final RadioGroup rgAction = dview.findViewById(R.id.rgAction);
final CheckBox cbResize = dview.findViewById(R.id.cbResize); final CheckBox cbResize = dview.findViewById(R.id.cbResize);
final ImageButton ibResize = dview.findViewById(R.id.ibResize);
final Spinner spResize = dview.findViewById(R.id.spResize); final Spinner spResize = dview.findViewById(R.id.spResize);
final TextView tvResize = dview.findViewById(R.id.tvResize); final TextView tvResize = dview.findViewById(R.id.tvResize);
final CheckBox cbPrivacy = dview.findViewById(R.id.cbPrivacy); final CheckBox cbPrivacy = dview.findViewById(R.id.cbPrivacy);
@ -6848,6 +6849,13 @@ public class FragmentCompose extends FragmentBase {
} }
}); });
ibResize.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 63);
}
});
spResize.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { spResize.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override @Override
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) { public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {

@ -70,6 +70,20 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/rgAction" /> app:layout_constraintTop_toBottomOf="@id/rgAction" />
<eu.faircode.email.FixedImageButton
android:id="@+id/ibResize"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginTop="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/rgAction"
app:srcCompat="@drawable/twotone_info_24" />
<Spinner <Spinner
android:id="@+id/spResize" android:id="@+id/spResize"
android:layout_width="wrap_content" android:layout_width="wrap_content"

Loading…
Cancel
Save