Loading legacy/ui/legacy/src/main/java/com/fsck/k9/activity/MessageCompose.java +11 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.os.Handler; import android.os.Parcelable; import android.text.TextUtils; import android.text.TextWatcher; import android.util.AttributeSet; import android.view.ContextThemeWrapper; import android.view.LayoutInflater; import android.view.Menu; Loading @@ -45,7 +46,10 @@ import androidx.annotation.Nullable; import androidx.annotation.StringRes; import androidx.appcompat.app.ActionBar; import androidx.core.content.IntentCompat; import androidx.core.graphics.Insets; import androidx.core.os.BundleCompat; import androidx.core.view.ViewCompat; import androidx.core.view.WindowInsetsCompat; import app.k9mail.core.ui.legacy.designsystem.atom.icon.Icons; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; Loading Loading @@ -121,6 +125,7 @@ import net.thunderbird.core.android.contact.ContactIntentHelper; import net.thunderbird.core.preference.GeneralSettingsManager; import net.thunderbird.core.ui.theme.manager.ThemeManager; import net.thunderbird.feature.search.legacy.LocalMessageSearch; import org.jetbrains.annotations.NotNull; import org.openintents.openpgp.OpenPgpApiManager; import org.openintents.openpgp.util.OpenPgpIntentStarter; import net.thunderbird.core.logging.legacy.Log; Loading Loading @@ -344,6 +349,12 @@ public class MessageCompose extends K9Activity implements OnClickListener, messageContentView = findViewById(R.id.message_content); messageContentView.getInputExtras(true).putBoolean("allowEmoji", true); ViewCompat.setOnApplyWindowInsetsListener(messageContentView.getRootView(), (v, windowInsets) -> { final Insets newInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout() | WindowInsetsCompat.Type.ime()); v.setPadding(newInsets.left, 0, newInsets.right, newInsets.bottom); return windowInsets; }); attachmentsView = findViewById(R.id.attachments); TextWatcher draftNeedsChangingTextWatcher = new SimpleTextWatcher() { Loading Loading
legacy/ui/legacy/src/main/java/com/fsck/k9/activity/MessageCompose.java +11 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.os.Handler; import android.os.Parcelable; import android.text.TextUtils; import android.text.TextWatcher; import android.util.AttributeSet; import android.view.ContextThemeWrapper; import android.view.LayoutInflater; import android.view.Menu; Loading @@ -45,7 +46,10 @@ import androidx.annotation.Nullable; import androidx.annotation.StringRes; import androidx.appcompat.app.ActionBar; import androidx.core.content.IntentCompat; import androidx.core.graphics.Insets; import androidx.core.os.BundleCompat; import androidx.core.view.ViewCompat; import androidx.core.view.WindowInsetsCompat; import app.k9mail.core.ui.legacy.designsystem.atom.icon.Icons; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; Loading Loading @@ -121,6 +125,7 @@ import net.thunderbird.core.android.contact.ContactIntentHelper; import net.thunderbird.core.preference.GeneralSettingsManager; import net.thunderbird.core.ui.theme.manager.ThemeManager; import net.thunderbird.feature.search.legacy.LocalMessageSearch; import org.jetbrains.annotations.NotNull; import org.openintents.openpgp.OpenPgpApiManager; import org.openintents.openpgp.util.OpenPgpIntentStarter; import net.thunderbird.core.logging.legacy.Log; Loading Loading @@ -344,6 +349,12 @@ public class MessageCompose extends K9Activity implements OnClickListener, messageContentView = findViewById(R.id.message_content); messageContentView.getInputExtras(true).putBoolean("allowEmoji", true); ViewCompat.setOnApplyWindowInsetsListener(messageContentView.getRootView(), (v, windowInsets) -> { final Insets newInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout() | WindowInsetsCompat.Type.ime()); v.setPadding(newInsets.left, 0, newInsets.right, newInsets.bottom); return windowInsets; }); attachmentsView = findViewById(R.id.attachments); TextWatcher draftNeedsChangingTextWatcher = new SimpleTextWatcher() { Loading