diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ec6e582903..b8a28866c6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -78,6 +78,7 @@ () { @Override public void onChanged(EntityFolder archive) { - tvNoPrimaryArchive.setVisibility(done && archive == null ? View.VISIBLE : View.GONE); + PackageManager pm = getContext().getPackageManager(); + pm.setComponentEnabledSetting( + new ComponentName(getContext(), ActivitySearch.class), + archive == null + ? PackageManager.COMPONENT_ENABLED_STATE_DISABLED + : PackageManager.COMPONENT_ENABLED_STATE_ENABLED, + PackageManager.DONT_KILL_APP); } }); } diff --git a/app/src/main/res/layout/fragment_setup.xml b/app/src/main/res/layout/fragment_setup.xml index 3e37d1b79d..15b14d9dd3 100644 --- a/app/src/main/res/layout/fragment_setup.xml +++ b/app/src/main/res/layout/fragment_setup.xml @@ -66,18 +66,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvAccountDone" /> - - + app:layout_constraintTop_toBottomOf="@id/tvNoPrimaryDrafts" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 709f6faf12..5bd5f66c5e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -194,7 +194,6 @@ Password missing No drafts folder selected No primary account or no drafts folder - No primary account or no archive folder This provider does not support push messages. This will delay reception of new messages and increase battery usage. Delete this account permanently? Delete this identity permanently?