Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.base_ui.activity
- import android.os.Bundle
- import android.os.PersistableBundle
- import android.widget.Toast
- import androidx.appcompat.app.AppCompatActivity
- import androidx.fragment.app.Fragment
- abstract class BaseActivity : AppCompatActivity(), IBaseActivity {
- override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
- super.onCreate(savedInstanceState, persistentState)
- setContentView(layoutId()) я шо то на эту строку смотрю и как то от нее говной воняет
- }
- override fun showToast(message: String) =
- Toast.makeText(this, message, Toast.LENGTH_LONG).show()
- fun replaceFragment(fragment: Fragment, container: Int, tag: String) = supportFragmentManager
- .beginTransaction()
- .replace(container, fragment, tag)
- .commit()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement