Remove portrait support in SetupWizard

We support sensorLandscape for a moment.

See also I45e30c652feab1d30c4f0379379f8ca4e455fa02

- Use sensorLandscape instead of default
- Modify paddings in default xmls to layout landscape stuffs
  correctly

Change-Id: Ife03de69e4d1d2d898cd0e8de3cefd733aea8f19
This commit is contained in:
Daisuke Miyakawa
2011-02-10 12:26:26 -08:00
parent 09d5c98ea1
commit cc0dc00916
7 changed files with 8 additions and 352 deletions

View File

@@ -21,7 +21,6 @@ import com.android.settings.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.net.NetworkInfo.DetailedState;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiManager;
@@ -747,8 +746,7 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
* Replace the current background with a new background whose id is resId if needed.
*/
private void trySetBackground(int resId) {
final int orientation = getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE && mBackgroundId != resId) {
if (mBackgroundId != resId) {
getWindow().setBackgroundDrawable(getResources().getDrawable(resId));
mBackgroundId = resId;
}