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;
/**
* User: serso
* Date: 3/5/13
* Time: 2:03 PM
*/
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 - 2025 Weber Informatics LLC | Privacy Policy