mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Smaller sidebar
This commit is contained in:
parent
28e9c2a8ec
commit
d112344780
@ -435,7 +435,7 @@ public class LocalMessageExtractor {
|
||||
|
||||
// TODO correctly extract OpenPgpSignatureResult and add to MessageViewContainer
|
||||
OpenPgpSignatureResult result = null;
|
||||
// result = new OpenPgpSignatureResult(OpenPgpSignatureResult.SIGNATURE_SUCCESS_CERTIFIED, "lul", false, 0x123);
|
||||
result = new OpenPgpSignatureResult(OpenPgpSignatureResult.SIGNATURE_SUCCESS_CERTIFIED, "lul", false, 0x123);
|
||||
containers.add(new MessageViewContainer(viewable.html, attachmentInfos, result, true, null));
|
||||
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ import android.content.Context;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
@ -12,6 +13,7 @@ import android.widget.TextView;
|
||||
import com.fsck.k9.R;
|
||||
|
||||
import org.openintents.openpgp.OpenPgpSignatureResult;
|
||||
import org.openintents.openpgp.util.OpenPgpUtils;
|
||||
|
||||
public class OpenPgpHeaderView extends LinearLayout {
|
||||
private OpenPgpSignatureResult signatureResult;
|
||||
@ -26,6 +28,7 @@ public class OpenPgpHeaderView extends LinearLayout {
|
||||
private LinearLayout mResultSignatureLayout;
|
||||
private TextView mResultSignatureName;
|
||||
private TextView mResultSignatureEmail;
|
||||
private Button mResultSignatureButton;
|
||||
|
||||
// private PendingIntent mMissingKeyPI;
|
||||
// private static final int REQUEST_CODE_DECRYPT_VERIFY = 12;
|
||||
@ -51,6 +54,7 @@ public class OpenPgpHeaderView extends LinearLayout {
|
||||
mResultSignatureLayout = (LinearLayout) findViewById(R.id.result_signature_layout);
|
||||
mResultSignatureName = (TextView) findViewById(R.id.result_signature_name);
|
||||
mResultSignatureEmail = (TextView) findViewById(R.id.result_signature_email);
|
||||
mResultSignatureButton = (Button) findViewById(R.id.result_signature_button);
|
||||
|
||||
// mGetKeyButton.setOnClickListener(new OnClickListener() {
|
||||
// @Override
|
||||
@ -82,8 +86,7 @@ public class OpenPgpHeaderView extends LinearLayout {
|
||||
setStatusImage(mContext, mResultSignatureIcon, mResultSignatureText, STATE_INVALID);
|
||||
mResultSignatureText.setText(R.string.openpgp_result_invalid_signature);
|
||||
|
||||
// mGetKeyButton.setVisibility(View.GONE);
|
||||
// mSignatureStatusImage.setImageResource(R.drawable.overlay_error);
|
||||
mResultSignatureButton.setVisibility(View.GONE);
|
||||
mResultSignatureLayout.setVisibility(View.GONE);
|
||||
break;
|
||||
}
|
||||
@ -91,9 +94,9 @@ public class OpenPgpHeaderView extends LinearLayout {
|
||||
setStatusImage(mContext, mResultSignatureIcon, mResultSignatureText, STATE_VERIFIED);
|
||||
mResultSignatureText.setText(R.string.openpgp_result_signature_certified);
|
||||
|
||||
// mGetKeyButton.setVisibility(View.GONE);
|
||||
// mSignatureUserId.setText(signatureResult.getUserId());
|
||||
// mSignatureStatusImage.setImageResource(R.drawable.overlay_ok);
|
||||
mResultSignatureButton.setVisibility(View.VISIBLE);
|
||||
mResultSignatureName.setText(OpenPgpUtils.s);
|
||||
mResultSignatureEmail.setText(signatureResult.getUserId());
|
||||
mResultSignatureLayout.setVisibility(View.VISIBLE);
|
||||
|
||||
break;
|
||||
|
@ -20,8 +20,8 @@
|
||||
<!-- sidebar -->
|
||||
<View
|
||||
android:id="@+id/message_sidebar"
|
||||
android:layout_width="8dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_width="4dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/openpgp_sidebar"
|
||||
|
@ -63,8 +63,8 @@
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<View
|
||||
android:layout_width="8dp"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_width="4dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/openpgp_sidebar" />
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginLeft="14dp"
|
||||
android:paddingRight="4dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
@ -107,16 +107,8 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="1dip"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="right"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/result_signature_action"
|
||||
android:id="@+id/result_signature_button"
|
||||
android:paddingLeft="8dp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_width="wrap_content"
|
||||
@ -130,8 +122,8 @@
|
||||
<View
|
||||
android:id="@+id/result_signature_divider2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dip"
|
||||
android:background="?android:attr/listDivider" />
|
||||
android:layout_height="2dp"
|
||||
android:background="@color/openpgp_sidebar" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user