mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
222 lines
6.9 KiB
Java
222 lines
6.9 KiB
Java
|
package androidx.fragment.app;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.res.Configuration;
|
||
|
import android.os.Parcelable;
|
||
|
import android.util.AttributeSet;
|
||
|
import android.view.Menu;
|
||
|
import android.view.MenuInflater;
|
||
|
import android.view.MenuItem;
|
||
|
import android.view.View;
|
||
|
import androidx.collection.SimpleArrayMap;
|
||
|
import androidx.core.util.Preconditions;
|
||
|
import androidx.lifecycle.ViewModelStoreOwner;
|
||
|
import androidx.loader.app.LoaderManager;
|
||
|
import java.io.FileDescriptor;
|
||
|
import java.io.PrintWriter;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class FragmentController {
|
||
|
private final FragmentHostCallback<?> mHost;
|
||
|
|
||
|
@Deprecated
|
||
|
public void dispatchReallyStop() {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void doLoaderDestroy() {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void doLoaderRetain() {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void doLoaderStart() {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void doLoaderStop(boolean z) {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void dumpLoaders(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void reportLoaderStart() {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void restoreLoaderNonConfig(SimpleArrayMap<String, LoaderManager> simpleArrayMap) {
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public SimpleArrayMap<String, LoaderManager> retainLoaderNonConfig() {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public static FragmentController createController(FragmentHostCallback<?> fragmentHostCallback) {
|
||
|
return new FragmentController((FragmentHostCallback) Preconditions.checkNotNull(fragmentHostCallback, "callbacks == null"));
|
||
|
}
|
||
|
|
||
|
private FragmentController(FragmentHostCallback<?> fragmentHostCallback) {
|
||
|
this.mHost = fragmentHostCallback;
|
||
|
}
|
||
|
|
||
|
public FragmentManager getSupportFragmentManager() {
|
||
|
return this.mHost.mFragmentManager;
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public LoaderManager getSupportLoaderManager() {
|
||
|
throw new UnsupportedOperationException("Loaders are managed separately from FragmentController, use LoaderManager.getInstance() to obtain a LoaderManager.");
|
||
|
}
|
||
|
|
||
|
public Fragment findFragmentByWho(String str) {
|
||
|
return this.mHost.mFragmentManager.findFragmentByWho(str);
|
||
|
}
|
||
|
|
||
|
public int getActiveFragmentsCount() {
|
||
|
return this.mHost.mFragmentManager.getActiveFragmentCount();
|
||
|
}
|
||
|
|
||
|
public List<Fragment> getActiveFragments(List<Fragment> list) {
|
||
|
return this.mHost.mFragmentManager.getActiveFragments();
|
||
|
}
|
||
|
|
||
|
public void attachHost(Fragment fragment) {
|
||
|
FragmentManager fragmentManager = this.mHost.mFragmentManager;
|
||
|
FragmentHostCallback<?> fragmentHostCallback = this.mHost;
|
||
|
fragmentManager.attachController(fragmentHostCallback, fragmentHostCallback, fragment);
|
||
|
}
|
||
|
|
||
|
public View onCreateView(View view, String str, Context context, AttributeSet attributeSet) {
|
||
|
return this.mHost.mFragmentManager.getLayoutInflaterFactory().onCreateView(view, str, context, attributeSet);
|
||
|
}
|
||
|
|
||
|
public void noteStateNotSaved() {
|
||
|
this.mHost.mFragmentManager.noteStateNotSaved();
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public Parcelable saveAllState() {
|
||
|
return this.mHost.mFragmentManager.saveAllState();
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void restoreAllState(Parcelable parcelable, List<Fragment> list) {
|
||
|
this.mHost.mFragmentManager.restoreAllState(parcelable, new FragmentManagerNonConfig(list, null, null));
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void restoreAllState(Parcelable parcelable, FragmentManagerNonConfig fragmentManagerNonConfig) {
|
||
|
this.mHost.mFragmentManager.restoreAllState(parcelable, fragmentManagerNonConfig);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void restoreSaveState(Parcelable parcelable) {
|
||
|
FragmentHostCallback<?> fragmentHostCallback = this.mHost;
|
||
|
if (!(fragmentHostCallback instanceof ViewModelStoreOwner)) {
|
||
|
throw new IllegalStateException("Your FragmentHostCallback must implement ViewModelStoreOwner to call restoreSaveState(). Call restoreAllState() if you're still using retainNestedNonConfig().");
|
||
|
}
|
||
|
fragmentHostCallback.mFragmentManager.restoreSaveState(parcelable);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public List<Fragment> retainNonConfig() {
|
||
|
FragmentManagerNonConfig retainNonConfig = this.mHost.mFragmentManager.retainNonConfig();
|
||
|
if (retainNonConfig == null || retainNonConfig.getFragments() == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return new ArrayList(retainNonConfig.getFragments());
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public FragmentManagerNonConfig retainNestedNonConfig() {
|
||
|
return this.mHost.mFragmentManager.retainNonConfig();
|
||
|
}
|
||
|
|
||
|
public void dispatchCreate() {
|
||
|
this.mHost.mFragmentManager.dispatchCreate();
|
||
|
}
|
||
|
|
||
|
public void dispatchActivityCreated() {
|
||
|
this.mHost.mFragmentManager.dispatchActivityCreated();
|
||
|
}
|
||
|
|
||
|
public void dispatchStart() {
|
||
|
this.mHost.mFragmentManager.dispatchStart();
|
||
|
}
|
||
|
|
||
|
public void dispatchResume() {
|
||
|
this.mHost.mFragmentManager.dispatchResume();
|
||
|
}
|
||
|
|
||
|
public void dispatchPause() {
|
||
|
this.mHost.mFragmentManager.dispatchPause();
|
||
|
}
|
||
|
|
||
|
public void dispatchStop() {
|
||
|
this.mHost.mFragmentManager.dispatchStop();
|
||
|
}
|
||
|
|
||
|
public void dispatchDestroyView() {
|
||
|
this.mHost.mFragmentManager.dispatchDestroyView();
|
||
|
}
|
||
|
|
||
|
public void dispatchDestroy() {
|
||
|
this.mHost.mFragmentManager.dispatchDestroy();
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void dispatchMultiWindowModeChanged(boolean z) {
|
||
|
this.mHost.mFragmentManager.dispatchMultiWindowModeChanged(z, true);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void dispatchPictureInPictureModeChanged(boolean z) {
|
||
|
this.mHost.mFragmentManager.dispatchPictureInPictureModeChanged(z, true);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void dispatchConfigurationChanged(Configuration configuration) {
|
||
|
this.mHost.mFragmentManager.dispatchConfigurationChanged(configuration, true);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void dispatchLowMemory() {
|
||
|
this.mHost.mFragmentManager.dispatchLowMemory(true);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {
|
||
|
return this.mHost.mFragmentManager.dispatchCreateOptionsMenu(menu, menuInflater);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public boolean dispatchPrepareOptionsMenu(Menu menu) {
|
||
|
return this.mHost.mFragmentManager.dispatchPrepareOptionsMenu(menu);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public boolean dispatchOptionsItemSelected(MenuItem menuItem) {
|
||
|
return this.mHost.mFragmentManager.dispatchOptionsItemSelected(menuItem);
|
||
|
}
|
||
|
|
||
|
public boolean dispatchContextItemSelected(MenuItem menuItem) {
|
||
|
return this.mHost.mFragmentManager.dispatchContextItemSelected(menuItem);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public void dispatchOptionsMenuClosed(Menu menu) {
|
||
|
this.mHost.mFragmentManager.dispatchOptionsMenuClosed(menu);
|
||
|
}
|
||
|
|
||
|
public boolean execPendingActions() {
|
||
|
return this.mHost.mFragmentManager.execPendingActions(true);
|
||
|
}
|
||
|
}
|