org.solovyev.android.fragments.SimpleFragmentReuseCondition Maven / Gradle / Ivy
package org.solovyev.android.fragments;
import android.support.v4.app.Fragment;
import org.solovyev.common.JPredicate;
import javax.annotation.Nonnull;
public class SimpleFragmentReuseCondition extends AbstractFragmentReuseCondition {
private SimpleFragmentReuseCondition(@Nonnull Class fragmentClass) {
super(fragmentClass);
}
@Nonnull
public static JPredicate forClass(@Nonnull Class fragmentClass) {
return new SimpleFragmentReuseCondition(fragmentClass);
}
@Override
protected boolean canReuseFragment(@Nonnull F fragment) {
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy