Use a resizable dialog for wifi configuration.
Bug: 3175152 Use a custom theme that allows the dialog to resize. Change-Id: I004b91c58d0d1810df50f9bdee9430698f51f8ab
This commit is contained in:
22
res/values/themes.xml
Normal file
22
res/values/themes.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="Theme.WifiDialog" parent="@android:style/Theme.Holo.Dialog.Alert">
|
||||||
|
<item name="android:windowSoftInputMode">adjustResize</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
@@ -38,7 +38,7 @@ class WifiDialog extends AlertDialog implements WifiConfigUiBase {
|
|||||||
|
|
||||||
public WifiDialog(Context context, DialogInterface.OnClickListener listener,
|
public WifiDialog(Context context, DialogInterface.OnClickListener listener,
|
||||||
AccessPoint accessPoint, boolean edit) {
|
AccessPoint accessPoint, boolean edit) {
|
||||||
super(context);
|
super(context, R.style.Theme_WifiDialog);
|
||||||
mEdit = edit;
|
mEdit = edit;
|
||||||
mListener = listener;
|
mListener = listener;
|
||||||
mAccessPoint = accessPoint;
|
mAccessPoint = accessPoint;
|
||||||
|
Reference in New Issue
Block a user