mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
fix botlogin UI
This commit is contained in:
parent
4b010e3b11
commit
8cf8776235
|
@ -6356,6 +6356,8 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||||
editText.setBackgroundDrawable(null);
|
editText.setBackgroundDrawable(null);
|
||||||
editText.requestFocus();
|
editText.requestFocus();
|
||||||
editText.setPadding(0, 0, 0, 0);
|
editText.setPadding(0, 0, 0, 0);
|
||||||
|
FrameLayout layout = new FrameLayout(context);
|
||||||
|
layout.addView(editText);
|
||||||
ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) editText.getLayoutParams();
|
ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) editText.getLayoutParams();
|
||||||
if (layoutParams != null) {
|
if (layoutParams != null) {
|
||||||
if (layoutParams instanceof FrameLayout.LayoutParams) {
|
if (layoutParams instanceof FrameLayout.LayoutParams) {
|
||||||
|
@ -6365,7 +6367,7 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||||
layoutParams.height = AndroidUtilities.dp(36);
|
layoutParams.height = AndroidUtilities.dp(36);
|
||||||
editText.setLayoutParams(layoutParams);
|
editText.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
builder.setView(editText);
|
builder.setView(layout);
|
||||||
|
|
||||||
builder.setPositiveButton(LocaleController.getString("OK", R.string.OK), (dialogInterface, i) -> {
|
builder.setPositiveButton(LocaleController.getString("OK", R.string.OK), (dialogInterface, i) -> {
|
||||||
if (getParentActivity() == null) {
|
if (getParentActivity() == null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user