Merge branch 'PhotonQyv-Fixed-issues-#190-&-#259-Screen-Orientation'
This commit is contained in:
commit
dc971ec36d
|
@ -37,7 +37,9 @@
|
|||
android:scheme="@string/oauth_scheme" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name=".MainActivity" />
|
||||
<activity
|
||||
android:name=".MainActivity" android:configChanges="orientation|screenSize|keyboardHidden">
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ComposeActivity"
|
||||
android:windowSoftInputMode="stateVisible|adjustResize">
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue