opt
This commit is contained in:
@@ -18,6 +18,11 @@ public class FragmentDescriptor {
|
||||
*/
|
||||
private boolean mNotifyMainModule = true;
|
||||
|
||||
/**
|
||||
* 是否有进入动画
|
||||
*/
|
||||
private boolean mHasTransition = false;
|
||||
|
||||
public FragmentDescriptor() {
|
||||
}
|
||||
|
||||
@@ -33,6 +38,10 @@ public class FragmentDescriptor {
|
||||
return mNotifyMainModule;
|
||||
}
|
||||
|
||||
public boolean hasTransition() {
|
||||
return mHasTransition;
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private FragmentDescriptor descriptor;
|
||||
@@ -56,6 +65,11 @@ public class FragmentDescriptor {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasTransition( boolean hasTransition ) {
|
||||
descriptor.mHasTransition = hasTransition;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FragmentDescriptor build() {
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user