aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-08 12:49:38 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-08 12:49:38 +0000
commit1352a8268ec4e54a8d4845ecfec3823864c750ee (patch)
tree1ab93a36b7dfdb0f96dec0aeb5f9f640abded0b2 /app/src/main/java
parent2bf561c31e5173f55019de865e77ebb52151854e (diff)
downloadinfinity-for-reddit-1352a8268ec4e54a8d4845ecfec3823864c750ee.tar
infinity-for-reddit-1352a8268ec4e54a8d4845ecfec3823864c750ee.tar.gz
infinity-for-reddit-1352a8268ec4e54a8d4845ecfec3823864c750ee.tar.bz2
infinity-for-reddit-1352a8268ec4e54a8d4845ecfec3823864c750ee.tar.lz
infinity-for-reddit-1352a8268ec4e54a8d4845ecfec3823864c750ee.tar.xz
infinity-for-reddit-1352a8268ec4e54a8d4845ecfec3823864c750ee.tar.zst
infinity-for-reddit-1352a8268ec4e54a8d4845ecfec3823864c750ee.zip
Start adding support for searching in posts.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/RPANActivity.java8
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java4
2 files changed, 3 insertions, 9 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/RPANActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/RPANActivity.java
index 54b3bcaf..38dd995f 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/RPANActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/RPANActivity.java
@@ -75,14 +75,9 @@ public class RPANActivity extends AppCompatActivity {
@Named("default")
SharedPreferences mSharedPreferences;
@Inject
- @Named("current_account")
- SharedPreferences mCurrentAccountSharedPreferences;
- @Inject
CustomThemeWrapper mCustomThemeWrapper;
@Inject
Executor mExecutor;
- private String mAccessToken;
- private String mAccountName;
@State
ArrayList<RPANBroadcast> rpanBroadcasts;
@State
@@ -119,9 +114,6 @@ public class RPANActivity extends AppCompatActivity {
actionBar.setHomeAsUpIndicator(upArrow);
actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#00000000")));
- mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
- mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, null);
-
if (rpanBroadcasts == null) {
loadRPANVideos();
} else {
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java
index 40d2ff9f..589326ee 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java
@@ -779,7 +779,9 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
int itemId = item.getItemId();
- if (itemId == R.id.action_refresh_view_post_detail_fragment) {
+ if (itemId == R.id.action_search_view_post_detail_fragment) {
+
+ } else if (itemId == R.id.action_refresh_view_post_detail_fragment) {
refresh(true, true);
return true;
} else if (itemId == R.id.action_comment_view_post_detail_fragment) {