Skip to content

Commit

Permalink
Shorten variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschiller committed Mar 16, 2021
1 parent bdf09c6 commit 319d1ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -285,7 +285,7 @@ public void run() {

// True if the fragment was already added to a FragmentManager, but has since been removed
// again.
boolean mRemovedFromFragmentManager;
boolean mRemoved;

// Max Lifecycle state this Fragment can achieve.
Lifecycle.State mMaxState = Lifecycle.State.RESUMED;
Expand Down Expand Up @@ -2183,7 +2183,7 @@ void initState() {
mTag = null;
mHidden = false;
mDetached = false;
mRemovedFromFragmentManager = true;
mRemoved = true;
}

/**
Expand Down
Expand Up @@ -1728,7 +1728,7 @@ FragmentStateManager createOrGetFragmentStateManager(@NonNull Fragment f) {
}

FragmentStateManager addFragment(@NonNull Fragment fragment) {
if (fragment.mRemovedFromFragmentManager) {
if (fragment.mRemoved) {
FragmentStrictMode.onFragmentReuse(fragment);
}
if (isLoggingEnabled(Log.VERBOSE)) Log.v(TAG, "add: " + fragment);
Expand Down
Expand Up @@ -254,7 +254,7 @@ FragmentTransaction add(@NonNull ViewGroup container, @NonNull Fragment fragment
}

void doAddOp(int containerViewId, Fragment fragment, @Nullable String tag, int opcmd) {
if (fragment.mRemovedFromFragmentManager) {
if (fragment.mRemoved) {
FragmentStrictMode.onFragmentReuse(fragment);
}
final Class<?> fragmentClass = fragment.getClass();
Expand Down

0 comments on commit 319d1ce

Please sign in to comment.