From da2ab0884078d67336fd84cbfba57782ad2503d7 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 2 Jan 2019 19:01:09 +0100 Subject: [PATCH] Removed add identity from compose --- .../java/eu/faircode/email/FragmentCompose.java | 14 -------------- app/src/main/res/layout/fragment_compose.xml | 13 +------------ 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index fa1632a4aa..215fe2aeae 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -121,7 +121,6 @@ public class FragmentCompose extends FragmentEx { private ViewGroup view; private Spinner spIdentity; - private ImageView ivIdentityAdd; private TextView tvExtraPrefix; private EditText etExtra; private TextView tvExtraSuffix; @@ -171,7 +170,6 @@ public class FragmentCompose extends FragmentEx { // Get controls spIdentity = view.findViewById(R.id.spIdentity); - ivIdentityAdd = view.findViewById(R.id.ivIdentityAdd); tvExtraPrefix = view.findViewById(R.id.tvExtraPrefix); etExtra = view.findViewById(R.id.etExtra); tvExtraSuffix = view.findViewById(R.id.tvExtraSuffix); @@ -221,18 +219,6 @@ public class FragmentCompose extends FragmentEx { } }); - ivIdentityAdd.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - FragmentIdentity fragment = new FragmentIdentity(); - fragment.setArguments(new Bundle()); - - FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); - fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity"); - fragmentTransaction.commit(); - } - }); - View.OnClickListener onPick = new View.OnClickListener() { @Override public void onClick(View view) { diff --git a/app/src/main/res/layout/fragment_compose.xml b/app/src/main/res/layout/fragment_compose.xml index adb301f707..9a42c07cdb 100644 --- a/app/src/main/res/layout/fragment_compose.xml +++ b/app/src/main/res/layout/fragment_compose.xml @@ -20,21 +20,10 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="6dp" - app:layout_constraintEnd_toStartOf="@+id/ivIdentityAdd" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - -