Prevent keyboard from blocking the input box for WiFi configuration page.
Bug: 223980567 Test: manual Change-Id: I2b95b065394e2395396ff71b00bd949ac824dac3
This commit is contained in:
@@ -31,6 +31,7 @@ import android.os.SystemClock;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Button;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
@@ -124,6 +125,10 @@ public class ConfigureWifiEntryFragment extends InstrumentedFragment implements
|
||||
actionBar.setDisplayShowHomeEnabled(false);
|
||||
}
|
||||
|
||||
// Resize the layout when keyboard opens.
|
||||
getActivity().getWindow().setSoftInputMode(
|
||||
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
||||
|
||||
return rootView;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user