Skip to content

Commit

Permalink
resolved bug where buttons become disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Frey committed Oct 15, 2012
1 parent 765c99b commit 17197c8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/org/mythtv/client/ui/LocationActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
Expand Down Expand Up @@ -81,7 +79,7 @@ protected void onStart() {
Log.d( TAG, "onStart : enter" );
super.onStart();

IntentFilter upgradeCleanupFilter = new IntentFilter( UpgradeCleanupService.ACTION_PROGRAM_GUIDE_CLEANUP );
IntentFilter upgradeCleanupFilter = new IntentFilter( UpgradeCleanupService.ACTION_PROGRAMS_CLEANUP );
upgradeCleanupFilter.addAction( UpgradeCleanupService.ACTION_PROGRESS );
upgradeCleanupFilter.addAction( UpgradeCleanupService.ACTION_COMPLETE );
registerReceiver( upgradeCleanupReceiver, upgradeCleanupFilter );
Expand All @@ -105,6 +103,8 @@ public void onResume() {

startService( new Intent( UpgradeCleanupService.ACTION_PROGRAMS_CLEANUP ) );

setupButtons();

Log.d( TAG, "onResume : exit" );
}

Expand Down Expand Up @@ -210,15 +210,7 @@ public void onReceive( Context context, Intent intent ) {
// add processing dialog here
mProgressDialog = ProgressDialog.show( LocationActivity.this, "Please wait...", "Upgrading...", true );
mProgressDialog.getWindow().setGravity( Gravity.TOP );
mProgressDialog.setCancelable( true );
mProgressDialog.setOnCancelListener( new OnCancelListener() {

@Override
public void onCancel( DialogInterface dialogInterface ) {
}

});

mProgressDialog.setCancelable( false );

}

Expand Down

0 comments on commit 17197c8

Please sign in to comment.