use string constants for bundle keys, first Intent for k9mail

This commit is contained in:
Thialfihar
2010-05-31 23:15:20 +00:00
parent 74ab59cd52
commit 24a53d548b
13 changed files with 152 additions and 95 deletions

View File

@@ -76,7 +76,7 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor
}
}
String error = data.getString("error");
String error = data.getString(Apg.EXTRA_ERROR);
if (error != null) {
Toast.makeText(getContext(),
getContext().getString(R.string.errorMessage, error),
@@ -327,7 +327,7 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor
Bundle data = new Bundle();
data.putBoolean("closeProgressDialog", true);
if (error != null) {
data.putString("error", error);
data.putString(Apg.EXTRA_ERROR, error);
} else {
data.putBoolean("gotNewKey", true);
}