mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
UI tweaks
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
</string>
|
||||
<string name="connected_with_account_text">Your phone is connected to Chrome using this account:</string>
|
||||
<string name="link_action_pref_text">Link action preference:</string>
|
||||
<string name="disconnect">Disconnect</string>
|
||||
<string name="disconnect">Disconnect phone</string>
|
||||
<string name="disconnect_error_text">Error: Unable to disconnect.</string>
|
||||
<string name="help">Help</string>
|
||||
<string name="copied_desktop_clipboard">Copied desktop clipboard</string>
|
||||
|
||||
@@ -53,6 +53,7 @@ public class MainActivity extends Activity {
|
||||
|
||||
private boolean mPendingAuth = false;
|
||||
private int mScreenId = -1;
|
||||
private int mAccountSelectedPosition = 0;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
@@ -174,8 +175,8 @@ public class MainActivity extends Activity {
|
||||
nextButton.setOnClickListener(new OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
ListView listView = (ListView) findViewById(R.id.select_account);
|
||||
TextView account =
|
||||
(TextView) listView.getChildAt(listView.getCheckedItemPosition());
|
||||
mAccountSelectedPosition = listView.getCheckedItemPosition();
|
||||
TextView account = (TextView) listView.getChildAt(mAccountSelectedPosition);
|
||||
backButton.setEnabled(false);
|
||||
nextButton.setEnabled(false);
|
||||
register((String) account.getText());
|
||||
@@ -195,7 +196,7 @@ public class MainActivity extends Activity {
|
||||
listView.setAdapter(new ArrayAdapter<String>(this,
|
||||
R.layout.account, accounts));
|
||||
listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
|
||||
listView.setItemChecked(0, true);
|
||||
listView.setItemChecked(mAccountSelectedPosition, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user