app/src/main/java/cn/flightfeather/thirdappmodule/module/base/BaseActivity.kt
@@ -40,8 +40,10 @@
        } catch (e: Exception) {
            e.printStackTrace()
        }
        setContentView(getLayoutId())
        rootView = findViewById<ViewGroup>(android.R.id.content).getChildAt(0) as ViewGroup
        getLayoutId()?.let {
            setContentView(it)
            rootView = findViewById<ViewGroup>(android.R.id.content).getChildAt(0) as ViewGroup
        }
    }
    override fun onDestroy() {
@@ -62,7 +64,7 @@
    }
    abstract fun getLayoutId(): Int
    abstract fun getLayoutId(): Int?
    /**
     * 拓展activity中自动显示软键盘的方法