Merge "remove obsolete background bitmaps"
@@ -133,7 +133,6 @@
|
|||||||
|
|
||||||
<activity android:name=".wifi.WifiSettingsForSetupWizardXL"
|
<activity android:name=".wifi.WifiSettingsForSetupWizardXL"
|
||||||
android:theme="@android:style/Theme.Holo.NoActionBar"
|
android:theme="@android:style/Theme.Holo.NoActionBar"
|
||||||
android:windowBackground="@drawable/setups_bg_default"
|
|
||||||
android:screenOrientation="behind"
|
android:screenOrientation="behind"
|
||||||
android:clearTaskOnLaunch="true"
|
android:clearTaskOnLaunch="true"
|
||||||
android:windowSoftInputMode="adjustResize"
|
android:windowSoftInputMode="adjustResize"
|
||||||
@@ -326,7 +325,6 @@
|
|||||||
<activity android:name="DateTimeSettingsSetupWizard"
|
<activity android:name="DateTimeSettingsSetupWizard"
|
||||||
android:label="@string/date_and_time"
|
android:label="@string/date_and_time"
|
||||||
android:theme="@android:style/Theme.Holo.NoActionBar"
|
android:theme="@android:style/Theme.Holo.NoActionBar"
|
||||||
android:windowBackground="@drawable/setups_bg_default"
|
|
||||||
android:screenOrientation="behind">
|
android:screenOrientation="behind">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 242 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 104 KiB |
@@ -135,8 +135,6 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
|
|||||||
*/
|
*/
|
||||||
private DetailedState mPreviousNetworkState = DetailedState.DISCONNECTED;
|
private DetailedState mPreviousNetworkState = DetailedState.DISCONNECTED;
|
||||||
|
|
||||||
private int mBackgroundId = R.drawable.setups_bg_default;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@@ -347,7 +345,6 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
|
|||||||
hideSoftwareKeyboard();
|
hideSoftwareKeyboard();
|
||||||
setPaddingVisibility(View.VISIBLE);
|
setPaddingVisibility(View.VISIBLE);
|
||||||
|
|
||||||
trySetBackground(R.drawable.setups_bg_complete);
|
|
||||||
showConnectedTitle();
|
showConnectedTitle();
|
||||||
showConnectedProgressBar();
|
showConnectedProgressBar();
|
||||||
|
|
||||||
@@ -454,8 +451,6 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
|
|||||||
edit = true;
|
edit = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
trySetBackground(R.drawable.setups_bg_default);
|
|
||||||
|
|
||||||
// We don't want to keep scanning Wifi networks during users' configuring a network.
|
// We don't want to keep scanning Wifi networks during users' configuring a network.
|
||||||
mWifiSettings.pauseWifiScan();
|
mWifiSettings.pauseWifiScan();
|
||||||
|
|
||||||
@@ -568,8 +563,6 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
|
|||||||
/* package */ void onConnectButtonPressed() {
|
/* package */ void onConnectButtonPressed() {
|
||||||
mScreenState = SCREEN_STATE_CONNECTING;
|
mScreenState = SCREEN_STATE_CONNECTING;
|
||||||
|
|
||||||
trySetBackground(R.drawable.setups_bg_wifi);
|
|
||||||
|
|
||||||
mWifiSettings.submit(mWifiConfig.getController());
|
mWifiSettings.submit(mWifiConfig.getController());
|
||||||
|
|
||||||
// updateConnectionState() isn't called soon by the main Wifi module after the user's
|
// updateConnectionState() isn't called soon by the main Wifi module after the user's
|
||||||
@@ -597,7 +590,6 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onBackButtonPressed() {
|
private void onBackButtonPressed() {
|
||||||
trySetBackground(R.drawable.setups_bg_default);
|
|
||||||
|
|
||||||
if (mScreenState == SCREEN_STATE_CONNECTING || mScreenState == SCREEN_STATE_CONNECTED) {
|
if (mScreenState == SCREEN_STATE_CONNECTING || mScreenState == SCREEN_STATE_CONNECTED) {
|
||||||
if (DEBUG) Log.d(TAG, "Back button pressed after connect action.");
|
if (DEBUG) Log.d(TAG, "Back button pressed after connect action.");
|
||||||
@@ -717,8 +709,6 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
|
|||||||
mConnectButton.setVisibility(View.VISIBLE);
|
mConnectButton.setVisibility(View.VISIBLE);
|
||||||
mConnectButton.setEnabled(true);
|
mConnectButton.setEnabled(true);
|
||||||
|
|
||||||
trySetBackground(R.drawable.setups_bg_default);
|
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(mEditingTitle)) {
|
if (!TextUtils.isEmpty(mEditingTitle)) {
|
||||||
mTitleView.setText(mEditingTitle);
|
mTitleView.setText(mEditingTitle);
|
||||||
} else {
|
} else {
|
||||||
@@ -785,14 +775,4 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
|
|||||||
// We want to both save and connect a network. connectNetwork() does both.
|
// We want to both save and connect a network. connectNetwork() does both.
|
||||||
mWifiManager.connectNetwork(config);
|
mWifiManager.connectNetwork(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Replace the current background with a new background whose id is resId if needed.
|
|
||||||
*/
|
|
||||||
private void trySetBackground(int resId) {
|
|
||||||
if (mBackgroundId != resId) {
|
|
||||||
getWindow().setBackgroundDrawable(getResources().getDrawable(resId));
|
|
||||||
mBackgroundId = resId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|