Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
d29aba3d
Commit
d29aba3d
authored
Nov 18, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改MVPBaseFragment基类,生命周期调用时机
parent
92018119
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
25 deletions
+32
-25
config.gradle
config.gradle
+29
-21
BaseMvpFragment.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseMvpFragment.kt
+3
-4
No files found.
config.gradle
View file @
d29aba3d
...
...
@@ -41,14 +41,14 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
"m-audioim"
:
"0.0.12"
,
"m-confide"
:
"0.0.1
5
"
,
"m-consultant"
:
"0.0.2
2
"
,
"m-course"
:
"0.0.
8
"
,
"m-fm"
:
"0.0.1
1
"
,
"m-muse"
:
"0.0.
7
"
,
"m-tests"
:
"0.0.
4
"
,
"m-user"
:
"0.0.2
5
"
,
//第三步 若干
"m-confide"
:
"0.0.1
6
"
,
"m-consultant"
:
"0.0.2
3
"
,
"m-course"
:
"0.0.
9
"
,
"m-fm"
:
"0.0.1
2
"
,
"m-muse"
:
"0.0.
8
"
,
"m-tests"
:
"0.0.
5
"
,
"m-user"
:
"0.0.2
6
"
,
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.1"
,
"m-confide-api"
:
"0.0.1"
,
...
...
@@ -59,19 +59,23 @@ ext {
"m-tests-api"
:
"0.0.1"
,
"m-user-api"
:
"0.0.5"
,
//-------------- 功能组件 --------------
"ydl-flutter-base"
:
"0.0.3"
,
"ydl-media"
:
"0.0.9"
,
//第一步
"ydl-platform"
:
"0.0.21"
,
//第二步 若干
"ydl-webview"
:
"0.0.21"
,
"ydl-media"
:
"0.0.10"
,
"ydl-pay"
:
"0.0.7"
,
"m-audioim"
:
"0.0.13"
,
//以下 几乎不会动
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.1"
,
"ydl-pay"
:
"0.0.6"
,
"ydl-platform"
:
"0.0.20"
,
"ydl-utils"
:
"0.0.2"
,
"ydl-webview"
:
"0.0.20"
,
"router"
:
"0.0.1"
,
"ydl-flutter-base"
:
"0.0.3"
,
]
ydlCompileVersion
=
[
// -------------- 业务模块 --------------
"m-audioim"
:
"0.0.12"
,
//第三步 若干
"m-confide"
:
"0.0.15"
,
"m-consultant"
:
"0.0.22"
,
"m-course"
:
"0.0.8"
,
...
...
@@ -89,14 +93,18 @@ ext {
"m-tests-api"
:
"0.0.1"
,
"m-user-api"
:
"0.0.5"
,
//-------------- 功能组件 --------------
"ydl-flutter-base"
:
"0.0.3"
,
"ydl-media"
:
"0.0.9"
,
//第一步
"ydl-platform"
:
"0.0.21"
,
//第二步 若干
"ydl-webview"
:
"0.0.21"
,
"ydl-media"
:
"0.0.10"
,
"ydl-pay"
:
"0.0.7"
,
"m-audioim"
:
"0.0.13"
,
//以下 几乎不会动
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.1"
,
"ydl-pay"
:
"0.0.6"
,
"ydl-platform"
:
"0.0.20"
,
"ydl-utils"
:
"0.0.2"
,
"ydl-webview"
:
"0.0.20"
,
"router"
:
"0.0.1"
,
"ydl-flutter-base"
:
"0.0.3"
,
]
dependencies
=
[
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseMvpFragment.kt
View file @
d29aba3d
package
com.ydl.ydlcommon.base
import
android.os.Bundle
import
android.support.v4.app.Fragment
import
android.view.View
import
com.ydl.ydlcommon.mvp.base.IPresenter
import
com.ydl.ydlcommon.mvp.base.IView
...
...
@@ -12,7 +11,7 @@ import com.ydl.ydlcommon.mvp.delegate.MvpFragmentDelegateImpl
* Created by haorui on 2019-08-14.
* Des:基础 MVP Fragment
*/
abstract
class
BaseMvpFragment
<
V
:
IView
,
P
:
IPresenter
<
V
>>
:
Fragment
(),
MvpDelegateCallback
<
V
,
P
>,
abstract
class
BaseMvpFragment
<
V
:
IView
,
P
:
IPresenter
<
V
>>
:
Base
Fragment
(),
MvpDelegateCallback
<
V
,
P
>,
IView
{
protected
var
mPresenter
:
P
?=
null
...
...
@@ -27,8 +26,8 @@ abstract class BaseMvpFragment<V : IView, P : IPresenter<V>> : Fragment(), MvpDe
abstract
override
fun
createPresenter
():
P
override
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?)
{
super
.
onViewCreated
(
view
,
savedInstanceState
)
mvpDelegate
?.
onViewCreated
(
view
,
savedInstanceState
)
super
.
onViewCreated
(
view
,
savedInstanceState
)
}
override
fun
onDestroyView
()
{
...
...
@@ -37,8 +36,8 @@ abstract class BaseMvpFragment<V : IView, P : IPresenter<V>> : Fragment(), MvpDe
}
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
mvpDelegate
?.
onCreate
(
savedInstanceState
)
super
.
onCreate
(
savedInstanceState
)
}
override
fun
onDestroy
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment