mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
add title (same as menuitem text)
This commit is contained in:
parent
c705b6caa0
commit
883ab7ca1e
2 changed files with 7 additions and 1 deletions
|
@ -136,6 +136,12 @@ public class BackupConfigView extends LinearLayout
|
|||
}
|
||||
}
|
||||
|
||||
int getAlertTitle()
|
||||
{
|
||||
return mIsStore
|
||||
? R.string.gamel_menu_storedb : R.string.gamel_menu_loaddb;
|
||||
}
|
||||
|
||||
int getPosButtonTxt()
|
||||
{
|
||||
return mIsStore
|
||||
|
|
|
@ -1554,12 +1554,12 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
|
||||
private Dialog mkLoadStoreDlg( final Uri uri )
|
||||
{
|
||||
Log.d( TAG, "mkLoadStoreDlg(%s)", uri );
|
||||
final BackupConfigView view = (BackupConfigView)
|
||||
LocUtils.inflate( m_activity, R.layout.backup_config_view );
|
||||
view.init( uri );
|
||||
|
||||
AlertDialog.Builder ab = makeAlertBuilder()
|
||||
.setTitle( view.getAlertTitle() )
|
||||
.setView( view )
|
||||
.setPositiveButton( view.getPosButtonTxt(), new OnClickListener() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue