aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorTacoTheDank <SkytkRSfan3895@gmail.com>2021-09-25 01:28:22 +0000
committerTacoTheDank <SkytkRSfan3895@gmail.com>2021-09-25 01:28:22 +0000
commita5ca6ac2bcc82c339706a84d4949c0f4b4e33540 (patch)
tree154c22281da74d825ca6f0fcc241cbdd854826bd /app/src/main/java/ml/docilealligator/infinityforreddit
parent14a09c725ffd5fc78acaa00831b28962995ea10b (diff)
downloadinfinity-for-reddit-a5ca6ac2bcc82c339706a84d4949c0f4b4e33540.tar
infinity-for-reddit-a5ca6ac2bcc82c339706a84d4949c0f4b4e33540.tar.gz
infinity-for-reddit-a5ca6ac2bcc82c339706a84d4949c0f4b4e33540.tar.bz2
infinity-for-reddit-a5ca6ac2bcc82c339706a84d4949c0f4b4e33540.tar.lz
infinity-for-reddit-a5ca6ac2bcc82c339706a84d4949c0f4b4e33540.tar.xz
infinity-for-reddit-a5ca6ac2bcc82c339706a84d4949c0f4b4e33540.tar.zst
infinity-for-reddit-a5ca6ac2bcc82c339706a84d4949c0f4b4e33540.zip
Use FragmentContainerView
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchSubredditsResultActivity.java5
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchUsersResultActivity.java5
2 files changed, 6 insertions, 4 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchSubredditsResultActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchSubredditsResultActivity.java
index 3b6ead1a..ae115534 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchSubredditsResultActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchSubredditsResultActivity.java
@@ -122,11 +122,12 @@ public class SearchSubredditsResultActivity extends BaseActivity implements Acti
bundle.putString(SubredditListingFragment.EXTRA_ACCOUNT_NAME, mAccountName);
bundle.putBoolean(SubredditListingFragment.EXTRA_IS_MULTI_SELECTION, getIntent().getBooleanExtra(EXTRA_IS_MULTI_SELECTION, false));
mFragment.setArguments(bundle);
- getSupportFragmentManager().beginTransaction().replace(R.id.frame_layout_search_subreddits_result_activity, mFragment).commit();
} else {
mFragment = getSupportFragmentManager().getFragment(savedInstanceState, FRAGMENT_OUT_STATE);
- getSupportFragmentManager().beginTransaction().replace(R.id.frame_layout_search_subreddits_result_activity, mFragment).commit();
}
+ getSupportFragmentManager().beginTransaction()
+ .replace(R.id.frame_layout_search_subreddits_result_activity, mFragment)
+ .commit();
}
@Override
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchUsersResultActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchUsersResultActivity.java
index 2fbfc150..58db6bc7 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchUsersResultActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchUsersResultActivity.java
@@ -119,11 +119,12 @@ public class SearchUsersResultActivity extends BaseActivity implements ActivityT
bundle.putString(UserListingFragment.EXTRA_ACCOUNT_NAME, mAccountName);
bundle.putBoolean(UserListingFragment.EXTRA_IS_MULTI_SELECTION, getIntent().getBooleanExtra(EXTRA_IS_MULTI_SELECTION, false));
mFragment.setArguments(bundle);
- getSupportFragmentManager().beginTransaction().replace(R.id.frame_layout_search_users_result_activity, mFragment).commit();
} else {
mFragment = getSupportFragmentManager().getFragment(savedInstanceState, FRAGMENT_OUT_STATE);
- getSupportFragmentManager().beginTransaction().replace(R.id.frame_layout_search_users_result_activity, mFragment).commit();
}
+ getSupportFragmentManager().beginTransaction()
+ .replace(R.id.frame_layout_search_users_result_activity, mFragment)
+ .commit();
}
@Override