Commit a1bf864b authored by Lucio Maciel's avatar Lucio Maciel

Fix admin panel crash

parent 5cd165f0
......@@ -35,6 +35,7 @@ import chat.rocket.android.server.ui.ChangeServerActivity
import chat.rocket.android.settings.di.SettingsFragmentProvider
import chat.rocket.android.settings.password.di.PasswordFragmentProvider
import chat.rocket.android.settings.password.ui.PasswordActivity
import chat.rocket.android.webview.adminpanel.di.AdminPanelWebViewFragmentProvider
import dagger.Module
import dagger.android.ContributesAndroidInjector
......@@ -64,7 +65,8 @@ abstract class ActivityBuilder {
ProfileFragmentProvider::class,
SettingsFragmentProvider::class,
AboutFragmentProvider::class,
PreferencesFragmentProvider::class
PreferencesFragmentProvider::class,
AdminPanelWebViewFragmentProvider::class
]
)
abstract fun bindMainActivity(): MainActivity
......
package chat.rocket.android.webview.adminpanel.di
import chat.rocket.android.webview.adminpanel.ui.AdminPanelWebViewFragment
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class AdminPanelWebViewFragmentProvider {
@ContributesAndroidInjector
abstract fun provideAdminPanelWebViewFragment(): AdminPanelWebViewFragment
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment