Commit 389b2b5b authored by akwizgran's avatar akwizgran

Merge branch '1423-check-lifecycle-state' into 'master'

Check lifecycle state before changing fragment

Closes #1423

See merge request !958
parents e47d4159 78abfa36
......@@ -38,6 +38,7 @@ import java.util.List;
import javax.annotation.Nullable;
import javax.inject.Inject;
import static android.arch.lifecycle.Lifecycle.State.STARTED;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import static android.view.WindowManager.LayoutParams.FLAG_SECURE;
import static android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT;
......@@ -148,6 +149,7 @@ public abstract class BaseActivity extends AppCompatActivity
public void showNextFragment(BaseFragment f) {
if (!getLifecycle().getCurrentState().isAtLeast(STARTED)) return;
R.anim.step_previous_out, R.anim.step_previous_in,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment