aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-25 19:40:26 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-25 19:40:26 +0000
commit14a17ad0384dc0811f3c7b0b1897c4d6691de0b3 (patch)
treef710764bd8c7319c2b71c21ffadd0fc9015785cc /app/src
parent230996226ba22256c656a820f671d270f981ff6c (diff)
downloadinfinity-for-reddit-14a17ad0384dc0811f3c7b0b1897c4d6691de0b3.tar
infinity-for-reddit-14a17ad0384dc0811f3c7b0b1897c4d6691de0b3.tar.gz
infinity-for-reddit-14a17ad0384dc0811f3c7b0b1897c4d6691de0b3.tar.bz2
infinity-for-reddit-14a17ad0384dc0811f3c7b0b1897c4d6691de0b3.tar.lz
infinity-for-reddit-14a17ad0384dc0811f3c7b0b1897c4d6691de0b3.tar.xz
infinity-for-reddit-14a17ad0384dc0811f3c7b0b1897c4d6691de0b3.tar.zst
infinity-for-reddit-14a17ad0384dc0811f3c7b0b1897c4d6691de0b3.zip
Version 6.3.0-beta1. Rename RedditAPIInfoBottomSheetFragment to ImportantInfoBottomSheetFragment. Disable showing ImportantInfoBottomSheetFragment.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java8
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ImportantInfoBottomSheetFragment.java (renamed from app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java)8
-rw-r--r--app/src/main/res/layout/fragment_important_info_bottom_sheet.xml (renamed from app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml)2
3 files changed, 9 insertions, 9 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java
index df9274f5..c08dbb68 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java
@@ -92,7 +92,7 @@ import ml.docilealligator.infinityforreddit.bottomsheetfragments.FABMoreOptionsB
import ml.docilealligator.infinityforreddit.bottomsheetfragments.PostLayoutBottomSheetFragment;
import ml.docilealligator.infinityforreddit.bottomsheetfragments.PostTypeBottomSheetFragment;
import ml.docilealligator.infinityforreddit.bottomsheetfragments.RandomBottomSheetFragment;
-import ml.docilealligator.infinityforreddit.bottomsheetfragments.RedditAPIInfoBottomSheetFragment;
+import ml.docilealligator.infinityforreddit.bottomsheetfragments.ImportantInfoBottomSheetFragment;
import ml.docilealligator.infinityforreddit.bottomsheetfragments.SortTimeBottomSheetFragment;
import ml.docilealligator.infinityforreddit.bottomsheetfragments.SortTypeBottomSheetFragment;
import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper;
@@ -339,11 +339,11 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb
mNewAccountName = getIntent().getStringExtra(EXTRA_NEW_ACCOUNT_NAME);
}
- if (!mInternalSharedPreferences.getBoolean(SharedPreferencesUtils.DO_NOT_SHOW_REDDIT_API_INFO_V2_AGAIN, false)) {
- RedditAPIInfoBottomSheetFragment fragment = new RedditAPIInfoBottomSheetFragment();
+ /*if (!mInternalSharedPreferences.getBoolean(SharedPreferencesUtils.DO_NOT_SHOW_REDDIT_API_INFO_V2_AGAIN, false)) {
+ ImportantInfoBottomSheetFragment fragment = new ImportantInfoBottomSheetFragment();
fragment.setCancelable(false);
fragment.show(getSupportFragmentManager(), fragment.getTag());
- }
+ }*/
initializeNotificationAndBindView();
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ImportantInfoBottomSheetFragment.java
index 85d50993..4c177863 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ImportantInfoBottomSheetFragment.java
@@ -11,14 +11,14 @@ import androidx.annotation.NonNull;
import ml.docilealligator.infinityforreddit.R;
import ml.docilealligator.infinityforreddit.activities.MainActivity;
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment;
-import ml.docilealligator.infinityforreddit.databinding.FragmentRedditApiInfoBottomSheetBinding;
+import ml.docilealligator.infinityforreddit.databinding.FragmentImportantInfoBottomSheetBinding;
import ml.docilealligator.infinityforreddit.utils.Utils;
-public class RedditAPIInfoBottomSheetFragment extends LandscapeExpandedRoundedBottomSheetDialogFragment {
+public class ImportantInfoBottomSheetFragment extends LandscapeExpandedRoundedBottomSheetDialogFragment {
private MainActivity mainActivity;
- public RedditAPIInfoBottomSheetFragment() {
+ public ImportantInfoBottomSheetFragment() {
// Required empty public constructor
}
@@ -26,7 +26,7 @@ public class RedditAPIInfoBottomSheetFragment extends LandscapeExpandedRoundedBo
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
- FragmentRedditApiInfoBottomSheetBinding binding = FragmentRedditApiInfoBottomSheetBinding.inflate(inflater, container, false);
+ FragmentImportantInfoBottomSheetBinding binding = FragmentImportantInfoBottomSheetBinding.inflate(inflater, container, false);
if (mainActivity != null && mainActivity.typeface != null) {
Utils.setFontToAllTextViews(binding.getRoot(), mainActivity.typeface);
diff --git a/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml b/app/src/main/res/layout/fragment_important_info_bottom_sheet.xml
index 8fc71245..06f94a97 100644
--- a/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_important_info_bottom_sheet.xml
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".bottomsheetfragments.RedditAPIInfoBottomSheetFragment">
+ tools:context=".bottomsheetfragments.ImportantInfoBottomSheetFragment">
<LinearLayout
android:layout_width="match_parent"