Make AccountSettings implement callbacks for check settings dialog

b/14120112

Change-Id: I9834a772e90d2d13f16a84a70651286759bc9dbc
This commit is contained in:
Tony Mantler 2014-04-18 11:16:57 -07:00
parent 6529f2c99d
commit 1c594b8050

View File

@ -41,6 +41,7 @@ import android.view.MenuItem;
import android.widget.TextView; import android.widget.TextView;
import com.android.email.R; import com.android.email.R;
import com.android.email.activity.setup.CheckSettingsProgressDialogFragment;
import com.android.email.provider.EmailProvider; import com.android.email.provider.EmailProvider;
import com.android.emailcommon.Logging; import com.android.emailcommon.Logging;
import com.android.emailcommon.provider.Account; import com.android.emailcommon.provider.Account;
@ -73,7 +74,7 @@ import java.util.List;
public class AccountSettings extends PreferenceActivity implements public class AccountSettings extends PreferenceActivity implements
SetupDataFragment.SetupDataContainer, SecurityRequiredDialogFragment.Callback, SetupDataFragment.SetupDataContainer, SecurityRequiredDialogFragment.Callback,
CheckSettingsErrorDialogFragment.Callback, AccountCheckSettingsFragment.Callback, CheckSettingsErrorDialogFragment.Callback, AccountCheckSettingsFragment.Callback,
AccountServerBaseFragment.Callback { AccountServerBaseFragment.Callback, CheckSettingsProgressDialogFragment.Callback {
/* /*
* Intent to open account settings for account=1 * Intent to open account settings for account=1
adb shell am start -a android.intent.action.EDIT \ adb shell am start -a android.intent.action.EDIT \
@ -673,6 +674,11 @@ public class AccountSettings extends PreferenceActivity implements
.commit(); .commit();
} }
@Override
public void onCheckSettingsProgressDialogCancel() {
dismissCheckSettingsFragment();
}
/** /**
* After verifying a new server configuration as OK, we return here and continue. This kicks * After verifying a new server configuration as OK, we return here and continue. This kicks
* off the save process. * off the save process.