From 5770393498e854b228cc7e771fbab140922f14a2 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 28 Oct 2020 16:28:19 +0800 Subject: Fix blanck white background in MainActivty after returning from SearchActivity. --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 6 ++++-- .../java/ml/docilealligator/infinityforreddit/Post/ParsePost.java | 2 -- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ce8ec0eb..b392e7ad 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -38,7 +38,7 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.browser:browser:1.2.0' implementation 'androidx.cardview:cardview:1.0.0' - implementation 'androidx.constraintlayout:constraintlayout:2.0.2' + implementation 'androidx.constraintlayout:constraintlayout:2.0.3' // Lifecycle components def lifecycleVersion = '2.2.0' implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6cbdca3f..763d1c03 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -274,7 +274,8 @@ android:name=".Activity.SearchActivity" android:label="@string/search_activity_label" android:parentActivityName=".Activity.MainActivity" - android:theme="@style/AppTheme.Slidable" /> + android:theme="@style/AppTheme.Slidable" + android:windowSoftInputMode="adjustPan" /> + android:theme="@style/AppTheme.Launcher" + android:windowSoftInputMode="adjustPan"> diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java index 1a83fc16..9f77fdda 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java @@ -3,7 +3,6 @@ package ml.docilealligator.infinityforreddit.Post; import android.net.Uri; import android.os.AsyncTask; import android.text.Html; -import android.util.Log; import org.json.JSONArray; import org.json.JSONException; @@ -563,7 +562,6 @@ public class ParsePost { boolean availablePost = true; if (subredditFilterList != null) { for (SubredditFilter subredditFilter : subredditFilterList) { - Log.i("sasdfasdf", subredditFilter.getSubredditName() + " " + post.getSubredditName()); if (subredditFilter.getSubredditName().equals(post.getSubredditName())) { availablePost = false; break; -- cgit v1.2.3