diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 84c1b093d..830c6695d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -37,7 +37,9 @@ android:scheme="@string/oauth_scheme" /> - + + diff --git a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java index 243fce579..caaed4528 100644 --- a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java @@ -18,6 +18,7 @@ package com.keylesspalace.tusky; import android.app.NotificationManager; import android.content.Intent; import android.content.SharedPreferences; +import android.content.res.Configuration; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.net.Uri; @@ -553,4 +554,10 @@ public class MainActivity extends BaseActivity implements SFragment.OnUserRemove } } } + + // Fix for GitHub issues #190, #259 (MainActivity won't restart on screen rotation.) + @Override + public void onConfigurationChanged(Configuration newConfig) { + super.onConfigurationChanged(newConfig); + } } \ No newline at end of file