add title (same as menuitem text)

This commit is contained in:
Eric House 2022-06-13 08:50:17 -07:00
parent c705b6caa0
commit 883ab7ca1e
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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