mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
In media search results, rotating screen triggers crash fixed #1753
This commit is contained in:
parent
781cfac7b1
commit
d7792d5861
2 changed files with 6 additions and 0 deletions
|
|
@ -114,6 +114,7 @@
|
|||
<activity
|
||||
android:name=".explore.SearchActivity"
|
||||
android:label="@string/title_activity_search"
|
||||
android:configChanges="orientation|keyboardHidden"
|
||||
android:parentActivityName=".contributions.ContributionsActivity"
|
||||
/>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package fr.free.nrw.commons.explore;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.database.DataSetObserver;
|
||||
import android.os.Bundle;
|
||||
import android.support.design.widget.TabLayout;
|
||||
|
|
@ -194,6 +195,10 @@ public class SearchActivity extends NavigationBaseActivity implements MediaDetai
|
|||
mediaDetails.showImage(index);
|
||||
forceInitBackButton();
|
||||
}
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called on Screen Rotation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue