import-log: some cosmetics

This commit is contained in:
Vincent Breitmoser
2014-06-10 13:52:05 +02:00
parent 7324bfcb53
commit eac582a313
8 changed files with 33 additions and 26 deletions

View File

@@ -204,7 +204,8 @@ public class UncachedKeyRing {
}
// dummy
log.add(LogLevel.INFO, LogType.MSG_IP_BAD_TYPE_SECRET, null, 0);
log.add(LogLevel.START, LogType.MSG_KC,
new String[] { PgpKeyHelper.convertKeyIdToHex(getMasterKeyId()) }, 0);
/*
// Remove all non-verifying self certificates
@@ -218,6 +219,8 @@ public class UncachedKeyRing {
}*/
log.add(LogLevel.OK, LogType.MSG_KC_SUCCESS, null, 0);
return this;

View File

@@ -432,8 +432,9 @@ public class ImportKeysActivity extends ActionBarActivity implements ActionBar.O
toast.setText(str);
toast.setDuration(duration);
toast.setIndeterminate(duration == 0);
toast.setButtonText("View log");
toast.setSwipeToDismiss(true);
toast.setButtonIcon(R.drawable.ic_action_view_as_list,
getResources().getString(R.string.view_log));
toast.setOnClickWrapper(new OnClickWrapper("supercardtoast",
new SuperToast.OnClickListener() {
@Override

View File

@@ -54,7 +54,7 @@ public class LogDisplayFragment extends ListFragment {
super(context, R.layout.log_display_item, log);
mInflater = LayoutInflater.from(getContext());
dipFactor = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
(float) 6, getResources().getDisplayMetrics());
(float) 10, getResources().getDisplayMetrics());
}