uncheck box as soon as download cancelled (and dismiss rather than

cancel the progress dialog so cancel listener doesn't get called on
normal completion)
This commit is contained in:
Eric House 2014-06-28 10:57:18 -07:00
parent aa7c3a18e3
commit 177fbb0bad
2 changed files with 3 additions and 3 deletions

View file

@ -1125,7 +1125,6 @@ public class DictsDelegate extends ListDelegateBase
@Override
protected void onCancelled()
{
m_checkbox.setChecked( false );
m_remoteInfo = null;
m_showRemote = false;
}
@ -1262,8 +1261,9 @@ public class DictsDelegate extends ListDelegateBase
/////////////////////////////////////////////////////////////////
// DialogInterface.OnCancelListener interface
/////////////////////////////////////////////////////////////////
public void onCancel( DialogInterface dialog )
public void onCancel( DialogInterface dialog )
{
m_checkbox.setChecked( false );
cancel( true );
}
} // class FetchListTask

View file

@ -370,7 +370,7 @@ public class DlgDelegate {
public void stopProgress()
{
if ( null != m_progress ) {
m_progress.cancel();
m_progress.dismiss();
m_progress = null;
}
}