Skip to content

Commit

Permalink
cleaned up imports and fixed lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Frey committed Oct 15, 2012
1 parent 17197c8 commit 2c29041
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
import javax.jmdns.ServiceListener;

import org.mythtv.R;
import org.mythtv.client.ui.LocationActivity;
import org.mythtv.client.ui.preferences.LocationProfile.LocationType;
import org.mythtv.db.MythtvDatabaseManager;
import org.mythtv.db.preferences.LocationProfileConstants;
import org.mythtv.db.preferences.PlaybackProfileConstants;

import android.annotation.TargetApi;
import android.app.ActionBar;
import android.app.AlertDialog;
import android.content.Context;
Expand All @@ -59,6 +59,7 @@
* @author John Baab
*
*/
@TargetApi( 11 )
public class MythtvPreferenceActivityHC extends PreferenceActivity {

private static final String TAG = MythtvPreferenceActivityHC.class.getSimpleName();
Expand Down Expand Up @@ -100,10 +101,11 @@ public boolean onOptionsItemSelected( MenuItem item ) {

switch( item.getItemId() ) {
case android.R.id.home:
// app icon in action bar clicked; go home
Intent intent = new Intent( this, LocationActivity.class );
intent.addFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP );
startActivity( intent );
finish();
// // app icon in action bar clicked; go home
// Intent intent = new Intent( this, LocationActivity.class );
// intent.addFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP );
// startActivity( intent );
return true;
}

Expand Down

0 comments on commit 2c29041

Please sign in to comment.