Compare commits

...

2 Commits

Author SHA1 Message Date
sergey.vlasenko 405ff7459f feature MB-43103 add setters in Switcher 2024-03-27 15:19:27 +03:00
sergey.vlasenko 87b7863b46 refactor 2023-11-02 16:24:13 +03:00
2 changed files with 9 additions and 1 deletions
@@ -75,7 +75,7 @@ abstract class BaseBottomNavigationController<TNavigationTab : BaseNavigationTab
// Detach current primary fragment
fragmentManager.primaryNavigationFragment?.let(transaction::detach)
val fragmentName = "tabClass.canonicalName"
val fragmentName = tabClass.canonicalName
var fragment = fragmentManager.findFragmentByTag(fragmentName)
if (state == null && fragment != null) {
@@ -28,6 +28,14 @@ public class Switcher extends FrameLayout {
@Nullable
private Animation outAnimation;
public void setOutAnimation(@Nullable Animation outAnimation) {
this.outAnimation = outAnimation;
}
public void setInAnimation(@Nullable Animation inAnimation) {
this.inAnimation = inAnimation;
}
public Switcher(@NonNull final Context context) {
this(context, null);
}