mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-30 07:28:26 +01:00
Handle configuration changes in preferences activity
This commit is contained in:
parent
287f2dae4a
commit
b35437dd3e
|
@ -94,7 +94,8 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name=".activities.Preferences"
|
||||
android:label="@string/preferences">
|
||||
android:label="@string/preferences"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden|screenLayout|smallestScreenSize">
|
||||
</activity>
|
||||
<activity android:name=".activities.EditBoard"
|
||||
android:label="@string/edit_board"
|
||||
|
|
|
@ -26,6 +26,7 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.SharedPreferences.Editor;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceActivity;
|
||||
import android.preference.PreferenceFragment;
|
||||
|
@ -105,6 +106,11 @@ public class Preferences extends PreferenceActivity {
|
|||
editor.apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
public interface ActivityHandler {
|
||||
void handleResult(int resultCode, Intent data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user