Fix wrong position of cursor in OwnerInfoSettings
Bug:N/A Test:Settings -> Security -> right settings icon of Screen lock -> Lock screen message. The cursor shows at the forefront of this EditText. Change-Id: I86fe1bdbe78f700053e38b0cba4a5c8365af946e Signed-off-by: tiansiming <tiansiming@xiaomi.com>
This commit is contained in:
@@ -67,6 +67,7 @@ public class OwnerInfoSettings extends InstrumentedDialogFragment implements OnC
|
|||||||
mOwnerInfo = (EditText) mView.findViewById(R.id.owner_info_edit_text);
|
mOwnerInfo = (EditText) mView.findViewById(R.id.owner_info_edit_text);
|
||||||
if (!TextUtils.isEmpty(info)) {
|
if (!TextUtils.isEmpty(info)) {
|
||||||
mOwnerInfo.setText(info);
|
mOwnerInfo.setText(info);
|
||||||
|
mOwnerInfo.setSelection(info.length());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user