Fix blanck white background in MainActivty after returning from SearchActivity.

This commit is contained in:
Alex Ning 2020-10-28 16:28:19 +08:00
parent 06fdd12f0c
commit 5770393498
3 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.browser:browser:1.2.0' implementation 'androidx.browser:browser:1.2.0'
implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2' implementation 'androidx.constraintlayout:constraintlayout:2.0.3'
// Lifecycle components // Lifecycle components
def lifecycleVersion = '2.2.0' def lifecycleVersion = '2.2.0'
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion" implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion"

View File

@ -274,7 +274,8 @@
android:name=".Activity.SearchActivity" android:name=".Activity.SearchActivity"
android:label="@string/search_activity_label" android:label="@string/search_activity_label"
android:parentActivityName=".Activity.MainActivity" android:parentActivityName=".Activity.MainActivity"
android:theme="@style/AppTheme.Slidable" /> android:theme="@style/AppTheme.Slidable"
android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name=".Activity.RulesActivity" android:name=".Activity.RulesActivity"
android:label="@string/rules_activity_label" android:label="@string/rules_activity_label"
@ -328,7 +329,8 @@
<activity <activity
android:name=".Activity.MainActivity" android:name=".Activity.MainActivity"
android:label="@string/application_name" android:label="@string/application_name"
android:theme="@style/AppTheme.Launcher"> android:theme="@style/AppTheme.Launcher"
android:windowSoftInputMode="adjustPan">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View File

@ -3,7 +3,6 @@ package ml.docilealligator.infinityforreddit.Post;
import android.net.Uri; import android.net.Uri;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.text.Html; import android.text.Html;
import android.util.Log;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
@ -563,7 +562,6 @@ public class ParsePost {
boolean availablePost = true; boolean availablePost = true;
if (subredditFilterList != null) { if (subredditFilterList != null) {
for (SubredditFilter subredditFilter : subredditFilterList) { for (SubredditFilter subredditFilter : subredditFilterList) {
Log.i("sasdfasdf", subredditFilter.getSubredditName() + " " + post.getSubredditName());
if (subredditFilter.getSubredditName().equals(post.getSubredditName())) { if (subredditFilter.getSubredditName().equals(post.getSubredditName())) {
availablePost = false; availablePost = false;
break; break;