From 9fd2da406f223118a266dc84f22439f09762c6b2 Mon Sep 17 00:00:00 2001 From: Yuichiro Kinoshita Date: Wed, 10 Jan 2024 19:15:20 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=81=8A=E6=B0=97=E3=81=AB=E5=85=A5?= =?UTF-8?q?=E3=82=8A=E7=94=BB=E9=9D=A2=E3=81=A7=E3=82=82=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=82=92=E3=83=8F=E3=83=B3=E3=83=89=E3=83=AA=E3=83=B3?= =?UTF-8?q?=E3=82=B0=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/pantasystem/milktea/favorite/FavoriteActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/features/favorite/src/main/java/net/pantasystem/milktea/favorite/FavoriteActivity.kt b/modules/features/favorite/src/main/java/net/pantasystem/milktea/favorite/FavoriteActivity.kt index 95f1e8b6f4..15bd966052 100644 --- a/modules/features/favorite/src/main/java/net/pantasystem/milktea/favorite/FavoriteActivity.kt +++ b/modules/features/favorite/src/main/java/net/pantasystem/milktea/favorite/FavoriteActivity.kt @@ -9,6 +9,7 @@ import dagger.hilt.android.AndroidEntryPoint import net.pantasystem.milktea.app_store.setting.SettingStore import net.pantasystem.milktea.common.ui.ApplyTheme import net.pantasystem.milktea.common_android_ui.PageableFragmentFactory +import net.pantasystem.milktea.common_android_ui.error.UserActionAppGlobalErrorListener import net.pantasystem.milktea.favorite.databinding.ActivityFavoriteBinding import net.pantasystem.milktea.model.account.page.Pageable import net.pantasystem.milktea.note.view.NoteActionHandler @@ -32,9 +33,13 @@ class FavoriteActivity : AppCompatActivity() { @Inject internal lateinit var applyTheme: ApplyTheme + @Inject + internal lateinit var userActionAppGlobalErrorListener: UserActionAppGlobalErrorListener + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) applyTheme() + userActionAppGlobalErrorListener(lifecycle, supportFragmentManager) mBinding = DataBindingUtil.setContentView(this, R.layout.activity_favorite) setSupportActionBar(mBinding.favoriteToolbar) supportActionBar?.setDisplayHomeAsUpEnabled(true)