import-log: some cosmetics
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user