mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
ok/cancel buttons standatization; better work with FixBooksDirectoryActivity
This commit is contained in:
parent
b483946d4d
commit
ea4a66ab7f
9 changed files with 46 additions and 96 deletions
|
@ -188,7 +188,8 @@ public class AuthenticationActivity extends Activity {
|
|||
|
||||
final ZLResource buttonResource = ZLResource.resource("dialog").getResource("button");
|
||||
|
||||
myOkButton = findButton(R.id.authentication_ok_button);
|
||||
final View buttonsView = findViewById(R.id.authentication_buttons);
|
||||
myOkButton = (Button)buttonsView.findViewById(R.id.ok_button);
|
||||
myOkButton.setText(buttonResource.getResource("ok").getValue());
|
||||
myOkButton.setOnClickListener(new Button.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
|
@ -202,7 +203,7 @@ public class AuthenticationActivity extends Activity {
|
|||
}
|
||||
});
|
||||
|
||||
final Button cancelButton = findButton(R.id.authentication_cancel_button);
|
||||
final Button cancelButton = (Button)buttonsView.findViewById(R.id.cancel_button);
|
||||
cancelButton.setText(buttonResource.getResource("cancel").getValue());
|
||||
cancelButton.setOnClickListener(new Button.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
|
@ -277,10 +278,6 @@ public class AuthenticationActivity extends Activity {
|
|||
return (TextView)findViewById(resourceId);
|
||||
}
|
||||
|
||||
private Button findButton(int resourceId) {
|
||||
return (Button)findViewById(resourceId);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue