From 17197c86fd1c8648fc653a2072c3c2222587a7b4 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Mon, 15 Oct 2012 10:14:16 -0400 Subject: [PATCH] resolved bug where buttons become disabled --- src/org/mythtv/client/ui/LocationActivity.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/org/mythtv/client/ui/LocationActivity.java b/src/org/mythtv/client/ui/LocationActivity.java index bc2ee2ef..ee97578a 100644 --- a/src/org/mythtv/client/ui/LocationActivity.java +++ b/src/org/mythtv/client/ui/LocationActivity.java @@ -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; @@ -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 ); @@ -105,6 +103,8 @@ public void onResume() { startService( new Intent( UpgradeCleanupService.ACTION_PROGRAMS_CLEANUP ) ); + setupButtons(); + Log.d( TAG, "onResume : exit" ); } @@ -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 ); }