Skip to content

Commit

Permalink
fix mythmote icon from disappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Frey committed Nov 3, 2012
1 parent 97cae46 commit d8ea0ab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected void onStop() {
if( null != channelDownloadReceiver ) {
try {
unregisterReceiver( channelDownloadReceiver );
channelDownloadReceiver = null;
//channelDownloadReceiver = null;
} catch( IllegalArgumentException e ) {
Log.e( TAG, "onStop : error", e );
}
Expand All @@ -133,7 +133,7 @@ protected void onStop() {
if( null != programGuideCleanupReceiver ) {
try {
unregisterReceiver( programGuideCleanupReceiver );
programGuideCleanupReceiver = null;
//programGuideCleanupReceiver = null;
} catch( IllegalArgumentException e ) {
Log.e( TAG, "onStop : error", e );
}
Expand All @@ -142,7 +142,7 @@ protected void onStop() {
if( null != programGuideDownloadReceiver ) {
try {
unregisterReceiver( programGuideDownloadReceiver );
programGuideDownloadReceiver = null;
//programGuideDownloadReceiver = null;
} catch( IllegalArgumentException e ) {
Log.e( TAG, "onStop : error", e );
}
Expand Down
20 changes: 11 additions & 9 deletions src/org/mythtv/client/ui/dvr/AbstractDvrActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,18 @@ public boolean onOptionsItemSelected( MenuItem item ) {
switch( item.getItemId() ) {
case android.R.id.home:

finish();

// 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 );
}
// 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 );
// }

return true;
}
Expand Down

0 comments on commit d8ea0ab

Please sign in to comment.