rename menu item

This commit is contained in:
eehouse 2010-02-09 14:36:09 +00:00
parent 5510ebc388
commit 1afbaf9c42

View file

@ -111,8 +111,8 @@ public class GamesList extends ListActivity implements View.OnClickListener {
// doOpen( info.position ); // doOpen( info.position );
// handled = true; // handled = true;
// break; // break;
case R.id.list_item_view: case R.id.list_item_config:
doView( path ); doConfig( path );
break; break;
case R.id.list_item_delete: case R.id.list_item_delete:
if ( ! deleteFile( path ) ) { if ( ! deleteFile( path ) ) {
@ -214,11 +214,11 @@ public class GamesList extends ListActivity implements View.OnClickListener {
File file = new File( path ); File file = new File( path );
Uri uri = Uri.fromFile( file ); Uri uri = Uri.fromFile( file );
Intent intent = new Intent( Intent.ACTION_EDIT, uri, Intent intent = new Intent( Intent.ACTION_EDIT, uri,
GamesList.this, BoardActivity.class ); GamesList.this, BoardActivity.class );
startActivity( intent ); startActivity( intent );
} }
private void doView( String path ) private void doConfig( String path )
{ {
Uri uri = Uri.fromFile( new File(path) ); Uri uri = Uri.fromFile( new File(path) );