Skip to content

Commit

Permalink
* Changed AbstractFrontendsActivity home button action to call finish().
Browse files Browse the repository at this point in the history
  • Loading branch information
pot8oe committed Nov 4, 2012
1 parent d8ea0ab commit 51d8fa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/org/mythtv/client/ui/HomeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public boolean onCreateOptionsMenu( Menu menu ) {
if( isMasterBackendConnected() ) {
MenuInflater inflater = getMenuInflater();
inflater.inflate( R.menu.home_main_menu, menu );
Log.d( TAG, "onCreateOptionsMenu : menu inflated" );
}

Log.d( TAG, "onCreateOptionsMenu : exit" );
Expand All @@ -102,7 +103,7 @@ public boolean onOptionsItemSelected( MenuItem item ) {

switch( item.getItemId() ) {
case R.id.menu_frontends:
Log.d( TAG, "onOptionsItemSelected : setup selected" );
Log.d( TAG, "onOptionsItemSelected : Mythmote selected" );

if( isMasterBackendConnected() ) {
startActivity( new Intent( this, MythmoteActivity.class ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,7 @@ public boolean onOptionsItemSelected( MenuItem item ) {

switch( item.getItemId() ) {
case android.R.id.home:
// app icon in action bar clicked; go home
if( getMainApplication().getConnectedLocationProfile().equals( "HOME" ) ) {
Intent intent = new Intent( this, HomeActivity.class );
intent.addFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP );
startActivity( intent );
} else {
Intent intent = new Intent( this, AwayActivity.class );
intent.addFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP );
startActivity( intent );
}

this.finish();
return true;
}

Expand Down

0 comments on commit 51d8fa4

Please sign in to comment.