- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
50 lines
1.3 KiB
Java
50 lines
1.3 KiB
Java
package androidx.fragment.app;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import androidx.lifecycle.ViewModelStore;
|
|
import java.util.Collection;
|
|
import java.util.Map;
|
|
|
|
@Deprecated
|
|
/* loaded from: classes.dex */
|
|
public class FragmentManagerNonConfig {
|
|
|
|
@Nullable
|
|
private final Map<String, FragmentManagerNonConfig> mChildNonConfigs;
|
|
|
|
@Nullable
|
|
private final Collection<Fragment> mFragments;
|
|
|
|
@Nullable
|
|
private final Map<String, ViewModelStore> mViewModelStores;
|
|
|
|
@Nullable
|
|
public Map<String, FragmentManagerNonConfig> getChildNonConfigs() {
|
|
return this.mChildNonConfigs;
|
|
}
|
|
|
|
@Nullable
|
|
public Collection<Fragment> getFragments() {
|
|
return this.mFragments;
|
|
}
|
|
|
|
@Nullable
|
|
public Map<String, ViewModelStore> getViewModelStores() {
|
|
return this.mViewModelStores;
|
|
}
|
|
|
|
public FragmentManagerNonConfig(@Nullable Collection<Fragment> collection, @Nullable Map<String, FragmentManagerNonConfig> map, @Nullable Map<String, ViewModelStore> map2) {
|
|
this.mFragments = collection;
|
|
this.mChildNonConfigs = map;
|
|
this.mViewModelStores = map2;
|
|
}
|
|
|
|
public boolean isRetaining(Fragment fragment) {
|
|
Collection<Fragment> collection = this.mFragments;
|
|
if (collection == null) {
|
|
return false;
|
|
}
|
|
return collection.contains(fragment);
|
|
}
|
|
}
|