update corners and stack bubbles from last message
|
@ -151,10 +151,10 @@
|
|||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2989"
|
||||
d="M 4,4 22,16 22,4 z"
|
||||
d="M 4,24 22,10 22,24 z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -151,10 +151,10 @@
|
|||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2989"
|
||||
d="M 4,4 22,16 22,4 z"
|
||||
d="M 4,24 22,10 22,24 z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -149,7 +149,7 @@
|
|||
transform="translate(0,2)"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
|
@ -151,11 +151,11 @@
|
|||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2989"
|
||||
d="M 4,4 22,16 22,4 z"
|
||||
d="M 4,24 22,10 22,24 z"
|
||||
sodipodi:nodetypes="cccc"
|
||||
style="fill:#424242;fill-opacity:1" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
||||
|
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
@ -149,7 +149,7 @@
|
|||
transform="translate(0,2)"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
@ -149,7 +149,7 @@
|
|||
transform="translate(0,2)"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -151,10 +151,10 @@
|
|||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2989"
|
||||
d="M 4,4 22,16 22,4 z"
|
||||
d="M 4,24 22,10 22,24 z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -149,7 +149,7 @@
|
|||
transform="translate(0,2)"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
|
@ -151,10 +151,10 @@
|
|||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2989"
|
||||
d="M 4,4 22,16 22,4 z"
|
||||
d="M 4,24 22,10 22,24 z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -149,7 +149,7 @@
|
|||
transform="translate(0,2)"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="12"
|
||||
height="20"
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
|
@ -151,10 +151,10 @@
|
|||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2989"
|
||||
d="M 32,4 14,16 14,4 z"
|
||||
d="M 32,24 14,10 14,24 z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="4"
|
||||
height="20"
|
||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -151,11 +151,11 @@
|
|||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2989"
|
||||
d="M 14,4 32,4 14,16 z"
|
||||
d="M 32,24 14,10 14,24 z"
|
||||
sodipodi:nodetypes="cccc"
|
||||
style="fill:#424242;fill-opacity:1" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="4"
|
||||
height="20"
|
||||
|
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
@ -149,7 +149,7 @@
|
|||
transform="translate(0,2)"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="4"
|
||||
height="20"
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
@ -150,7 +150,7 @@
|
|||
sodipodi:nodetypes="cccc" />
|
||||
|
||||
<rect
|
||||
ry="16"
|
||||
ry="2"
|
||||
y="4"
|
||||
x="4"
|
||||
height="20"
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
|
@ -71,19 +71,19 @@ images = {
|
|||
'ic_verified_fingerprint.svg' => ['ic_verified_fingerprint', 36],
|
||||
'qrcode-scan.svg' => ['ic_qr_code_scan_white_24dp', 24],
|
||||
'message_bubble_received.svg' => ['message_bubble_received.9', 0],
|
||||
'message_bubble_received_non_first.svg' => ['message_bubble_received_non_first.9', 0],
|
||||
'message_bubble_received_non_last.svg' => ['message_bubble_received_non_last.9', 0],
|
||||
'message_bubble_received_grey.svg' => ['message_bubble_received_grey.9', 0],
|
||||
'message_bubble_received_grey_non_first.svg' => ['message_bubble_received_grey_non_first.9', 0],
|
||||
'message_bubble_received_grey_non_last.svg' => ['message_bubble_received_grey_non_last.9', 0],
|
||||
'message_bubble_received_dark.svg' => ['message_bubble_received_dark.9', 0],
|
||||
'message_bubble_received_dark_non_first.svg' => ['message_bubble_received_dark_non_first.9', 0],
|
||||
'message_bubble_received_dark_non_last.svg' => ['message_bubble_received_dark_non_last.9', 0],
|
||||
'message_bubble_received_warning.svg' => ['message_bubble_received_warning.9', 0],
|
||||
'message_bubble_received_warning_non_first.svg' => ['message_bubble_received_warning_non_first.9', 0],
|
||||
'message_bubble_received_warning_non_last.svg' => ['message_bubble_received_warning_non_last.9', 0],
|
||||
'message_bubble_received_white.svg' => ['message_bubble_received_white.9', 0],
|
||||
'message_bubble_received_white_non_first.svg' => ['message_bubble_received_white_non_first.9', 0],
|
||||
'message_bubble_received_white_non_last.svg' => ['message_bubble_received_white_non_last.9', 0],
|
||||
'message_bubble_sent.svg' => ['message_bubble_sent.9', 0],
|
||||
'message_bubble_sent_non_first.svg' => ['message_bubble_sent_non_first.9', 0],
|
||||
'message_bubble_sent_non_last.svg' => ['message_bubble_sent_non_last.9', 0],
|
||||
'message_bubble_sent_grey.svg' => ['message_bubble_sent_grey.9', 0],
|
||||
'message_bubble_sent_grey_non_first.svg' => ['message_bubble_send_grey_non_first.9', 0],
|
||||
'message_bubble_sent_grey_non_last.svg' => ['message_bubble_send_grey_non_last.9', 0],
|
||||
'date_bubble_white.svg' => ['date_bubble_white.9', 0],
|
||||
'date_bubble_grey.svg' => ['date_bubble_grey.9', 0],
|
||||
'marker.svg' => ['marker', 0]
|
||||
|
|
|
@ -911,14 +911,14 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
if (isInValidSession) {
|
||||
int bubble;
|
||||
if (!mUseGreenBackground) {
|
||||
if (mergeableWithPrev) {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_received_monochrome_non_first, R.drawable.message_bubble_received_white_non_first);
|
||||
if (mergeableWithNext) {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_received_monochrome_non_last, R.drawable.message_bubble_received_white_non_last);
|
||||
} else {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_received_monochrome, R.drawable.message_bubble_received_white);
|
||||
}
|
||||
} else {
|
||||
if (mergeableWithPrev) {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_received_green_non_first, R.drawable.message_bubble_received_white_non_first);
|
||||
if (mergeableWithNext) {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_received_green_non_last, R.drawable.message_bubble_received_non_last);
|
||||
} else {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_received_green, R.drawable.message_bubble_received);
|
||||
}
|
||||
|
@ -926,8 +926,8 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
viewHolder.message_box.setBackgroundResource(bubble);
|
||||
viewHolder.encryption.setVisibility(View.GONE);
|
||||
} else {
|
||||
if (mergeableWithPrev) {
|
||||
viewHolder.message_box.setBackgroundResource(R.drawable.message_bubble_received_warning_non_first);
|
||||
if (mergeableWithNext) {
|
||||
viewHolder.message_box.setBackgroundResource(R.drawable.message_bubble_received_warning_non_last);
|
||||
} else {
|
||||
viewHolder.message_box.setBackgroundResource(R.drawable.message_bubble_received_warning);
|
||||
}
|
||||
|
@ -942,8 +942,8 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
|
||||
if (type == SENT) {
|
||||
int bubble;
|
||||
if (mergeableWithPrev) {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_sent_non_first, R.drawable.message_bubble_sent_non_first);
|
||||
if (mergeableWithNext) {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_sent_non_last, R.drawable.message_bubble_sent_non_last);
|
||||
} else {
|
||||
bubble = activity.getThemeResource(R.attr.message_bubble_sent, R.drawable.message_bubble_sent);
|
||||
}
|
||||
|
@ -954,7 +954,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
displayStatus(viewHolder, message, type, darkBackground);
|
||||
|
||||
if (viewHolder.contact_picture != null)
|
||||
viewHolder.contact_picture.setVisibility(mergeableWithPrev ? View.INVISIBLE : View.VISIBLE);
|
||||
viewHolder.contact_picture.setVisibility(mergeableWithNext ? View.INVISIBLE : View.VISIBLE);
|
||||
if (viewHolder.edit_indicator != null)
|
||||
viewHolder.edit_indicator.setVisibility(mergeableWithNext ? View.GONE : viewHolder.edit_indicator.getVisibility());
|
||||
if (viewHolder.encryption != null)
|
||||
|
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 815 B |
Before Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 697 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 811 B |
Before Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 813 B |
Before Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 716 B |
Before Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 694 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 813 B |
Before Width: | Height: | Size: 1.3 KiB |
BIN
src/main/res/drawable-hdpi/message_bubble_sent_non_last.9.png
Normal file
After Width: | Height: | Size: 715 B |
Before Width: | Height: | Size: 1,023 B After Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 1,007 B After Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 933 B |
After Width: | Height: | Size: 568 B |
Before Width: | Height: | Size: 996 B After Width: | Height: | Size: 634 B |
Before Width: | Height: | Size: 923 B |
After Width: | Height: | Size: 556 B |
Before Width: | Height: | Size: 958 B |
After Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 1,010 B After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 919 B After Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 890 B |
After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 924 B |
After Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 949 B After Width: | Height: | Size: 645 B |
Before Width: | Height: | Size: 891 B |
BIN
src/main/res/drawable-mdpi/message_bubble_sent_non_last.9.png
Normal file
After Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 948 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 836 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 917 B |
Before Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 846 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 951 B |
Before Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 843 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 961 B |
Before Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 824 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1,005 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 971 B |
Before Width: | Height: | Size: 1.7 KiB |
BIN
src/main/res/drawable-xhdpi/message_bubble_sent_non_last.9.png
Normal file
After Width: | Height: | Size: 851 B |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |