Skip to content
Snippets Groups Projects
Commit 4f1bf5c0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Handle orientation change in FM app"

parents f2f0070e d54793dc
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
android:clearTaskOnLaunch="true" android:clearTaskOnLaunch="true"
android:allowTaskReparenting="true" android:allowTaskReparenting="true"
android:launchMode="singleTask" android:launchMode="singleTask"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="false" > android:excludeFromRecents="false" >
<intent-filter> <intent-filter>
......
...@@ -41,6 +41,7 @@ import android.content.DialogInterface.OnKeyListener; ...@@ -41,6 +41,7 @@ import android.content.DialogInterface.OnKeyListener;
import android.content.Intent; import android.content.Intent;
import android.content.IntentFilter; import android.content.IntentFilter;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;
import android.content.res.Configuration;
import android.media.AudioSystem; import android.media.AudioSystem;
import android.media.AudioManager; import android.media.AudioManager;
import android.media.MediaRecorder; import android.media.MediaRecorder;
...@@ -428,6 +429,12 @@ public class FMRadio extends Activity ...@@ -428,6 +429,12 @@ public class FMRadio extends Activity
return mFrequency; return mFrequency;
} }
@Override
public void onConfigurationChanged(Configuration newConfig) {
Log.d(LOGTAG, "onConfigurationChanged");
super.onConfigurationChanged(newConfig);
}
@Override @Override
public void onRestart() { public void onRestart() {
Log.d(LOGTAG, "FMRadio: onRestart"); Log.d(LOGTAG, "FMRadio: onRestart");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment