Merge pull request #7608 from thunderbird/remove_FragmentLauncherActivity

Remove `FragmentLauncherActivity`
This commit is contained in:
cketti 2024-02-09 17:39:33 +01:00 committed by GitHub
commit 98f0d4ffa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 45 deletions

View file

@ -7,10 +7,6 @@
android:theme="@style/Theme.K9.Light"
android:supportsRtl="true">
<activity
android:name="com.fsck.k9.activity.FragmentLauncherActivity"
/>
</application>
<queries>

View file

@ -1,22 +0,0 @@
package com.fsck.k9.activity
import android.os.Bundle
import com.fsck.k9.ui.R
import com.fsck.k9.ui.base.K9Activity
// Currently not used
class FragmentLauncherActivity : K9Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setLayout(R.layout.activity_fragment_launcher)
when (val fragment = intent.getStringExtra(EXTRA_FRAGMENT)) {
else -> throw IllegalArgumentException("Unknown destination: $fragment")
}
}
companion object {
const val EXTRA_FRAGMENT = "fragment"
}
}

View file

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.fsck.k9.activity.FragmentLauncherActivity">
<include layout="@layout/toolbar" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragment_launcher_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
/>
</LinearLayout>