Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
门心叼龙
MVPArms
提交
a3c1ae2b
M
MVPArms
项目概览
门心叼龙
/
MVPArms
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MVPArms
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a3c1ae2b
编写于
11月 12, 2017
作者:
J
jessyan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve ActivityDelegateImpl and FragmentDelegateImpl
上级
ce41ad8f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
2 addition
and
65 deletion
+2
-65
arms/src/main/java/com/jess/arms/base/delegate/ActivityDelegate.java
...in/java/com/jess/arms/base/delegate/ActivityDelegate.java
+1
-2
arms/src/main/java/com/jess/arms/base/delegate/ActivityDelegateImpl.java
...ava/com/jess/arms/base/delegate/ActivityDelegateImpl.java
+0
-28
arms/src/main/java/com/jess/arms/base/delegate/FragmentDelegate.java
...in/java/com/jess/arms/base/delegate/FragmentDelegate.java
+1
-3
arms/src/main/java/com/jess/arms/base/delegate/FragmentDelegateImpl.java
...ava/com/jess/arms/base/delegate/FragmentDelegateImpl.java
+0
-32
未找到文件。
arms/src/main/java/com/jess/arms/base/delegate/ActivityDelegate.java
浏览文件 @
a3c1ae2b
...
...
@@ -17,7 +17,6 @@ package com.jess.arms.base.delegate;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.os.Parcelable
;
/**
* ================================================
...
...
@@ -30,7 +29,7 @@ import android.os.Parcelable;
* <a href="https://github.com/JessYanCoding">Follow me</a>
* ================================================
*/
public
interface
ActivityDelegate
extends
Parcelable
{
public
interface
ActivityDelegate
{
String
LAYOUT_LINEARLAYOUT
=
"LinearLayout"
;
String
LAYOUT_FRAMELAYOUT
=
"FrameLayout"
;
String
LAYOUT_RELATIVELAYOUT
=
"RelativeLayout"
;
...
...
arms/src/main/java/com/jess/arms/base/delegate/ActivityDelegateImpl.java
浏览文件 @
a3c1ae2b
...
...
@@ -17,7 +17,6 @@ package com.jess.arms.base.delegate;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.os.Parcel
;
import
com.jess.arms.utils.ArmsUtils
;
...
...
@@ -80,31 +79,4 @@ public class ActivityDelegateImpl implements ActivityDelegate {
this
.
iActivity
=
null
;
this
.
mActivity
=
null
;
}
@Override
public
int
describeContents
()
{
return
0
;
}
@Override
public
void
writeToParcel
(
Parcel
dest
,
int
flags
)
{
}
protected
ActivityDelegateImpl
(
Parcel
in
)
{
this
.
mActivity
=
in
.
readParcelable
(
Activity
.
class
.
getClassLoader
());
this
.
iActivity
=
in
.
readParcelable
(
IActivity
.
class
.
getClassLoader
());
}
public
static
final
Creator
<
ActivityDelegateImpl
>
CREATOR
=
new
Creator
<
ActivityDelegateImpl
>()
{
@Override
public
ActivityDelegateImpl
createFromParcel
(
Parcel
source
)
{
return
new
ActivityDelegateImpl
(
source
);
}
@Override
public
ActivityDelegateImpl
[]
newArray
(
int
size
)
{
return
new
ActivityDelegateImpl
[
size
];
}
};
}
arms/src/main/java/com/jess/arms/base/delegate/FragmentDelegate.java
浏览文件 @
a3c1ae2b
...
...
@@ -17,7 +17,6 @@ package com.jess.arms.base.delegate;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Parcelable
;
import
android.support.v4.app.Fragment
;
import
android.view.View
;
...
...
@@ -32,8 +31,7 @@ import android.view.View;
* <a href="https://github.com/JessYanCoding">Follow me</a>
* ================================================
*/
public
interface
FragmentDelegate
extends
Parcelable
{
public
interface
FragmentDelegate
{
String
FRAGMENT_DELEGATE
=
"fragment_delegate"
;
void
onAttach
(
Context
context
);
...
...
arms/src/main/java/com/jess/arms/base/delegate/FragmentDelegateImpl.java
浏览文件 @
a3c1ae2b
...
...
@@ -17,9 +17,6 @@ package com.jess.arms.base.delegate;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Parcel
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.FragmentManager
;
import
android.view.View
;
import
com.jess.arms.utils.ArmsUtils
;
...
...
@@ -136,33 +133,4 @@ public class FragmentDelegateImpl implements FragmentDelegate {
public
boolean
isAdded
()
{
return
mFragment
!=
null
&&
mFragment
.
isAdded
();
}
@Override
public
int
describeContents
()
{
return
0
;
}
@Override
public
void
writeToParcel
(
Parcel
dest
,
int
flags
)
{
}
protected
FragmentDelegateImpl
(
Parcel
in
)
{
this
.
mFragmentManager
=
in
.
readParcelable
(
FragmentManager
.
class
.
getClassLoader
());
this
.
mFragment
=
in
.
readParcelable
(
Fragment
.
class
.
getClassLoader
());
this
.
iFragment
=
in
.
readParcelable
(
IFragment
.
class
.
getClassLoader
());
this
.
mUnbinder
=
in
.
readParcelable
(
Unbinder
.
class
.
getClassLoader
());
}
public
static
final
Creator
<
FragmentDelegateImpl
>
CREATOR
=
new
Creator
<
FragmentDelegateImpl
>()
{
@Override
public
FragmentDelegateImpl
createFromParcel
(
Parcel
source
)
{
return
new
FragmentDelegateImpl
(
source
);
}
@Override
public
FragmentDelegateImpl
[]
newArray
(
int
size
)
{
return
new
FragmentDelegateImpl
[
size
];
}
};
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录