android.support.v4.app.BackStackEntryTrojan.java Source code

Java tutorial

Introduction

Here is the source code for android.support.v4.app.BackStackEntryTrojan.java

Source

package android.support.v4.app;

public class BackStackEntryTrojan {

    public static Fragment getFragmentInBackStackRecord(final FragmentManager.BackStackEntry entry) {
        if (entry instanceof BackStackRecord)
            return ((BackStackRecord) entry).mHead.fragment;
        return null;
    }
}