mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #1877 from deltachat/adb-issue-1821
allow to add POI with text of any length
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/map_bubble_add_poi"
|
||||
@@ -30,14 +30,14 @@
|
||||
android:layout_marginRight="4dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:maxLines="1"
|
||||
android:maxLength="16"
|
||||
android:maxLines="5"
|
||||
android:layout_gravity="center"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical">
|
||||
<ImageButton
|
||||
android:id="@+id/sendView"
|
||||
android:layout_gravity="center_vertical"
|
||||
@@ -63,4 +63,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
@@ -119,7 +119,7 @@ public class DataCollector {
|
||||
if (isPoi && codepointChar.length() == 0 && messageId != 0) {
|
||||
//has a long poi label
|
||||
DcMsg poiMsg = dcContext.getMsg(messageId);
|
||||
String poiLongDescription = poiMsg.getText();
|
||||
String poiLongDescription = poiMsg.getSummarytext(16);
|
||||
pointFeature.addStringProperty(POI_LONG_DESCRIPTION, poiLongDescription);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user