mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Merge pull request #6542 from vector-im/feature/mna/lls-standardise-stop-text
[Location Share] - Standardise "Stop" texts for live (PSG-622)
This commit is contained in:
commit
6b403ec224
6 changed files with 22 additions and 12 deletions
1
changelog.d/6541.misc
Normal file
1
changelog.d/6541.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
[Location Share] - Standardise "Stop" texts for live
|
|
@ -5,8 +5,11 @@
|
||||||
<item name="android:foreground">?selectableItemBackground</item>
|
<item name="android:foreground">?selectableItemBackground</item>
|
||||||
<item name="android:background">@android:color/transparent</item>
|
<item name="android:background">@android:color/transparent</item>
|
||||||
<item name="android:textSize">12sp</item>
|
<item name="android:textSize">12sp</item>
|
||||||
<item name="android:padding">0dp</item>
|
|
||||||
<item name="android:gravity">center</item>
|
<item name="android:gravity">center</item>
|
||||||
|
<item name="android:padding">0dp</item>
|
||||||
|
<item name="android:minWidth">0dp</item>
|
||||||
|
<item name="android:insetRight">8dp</item>
|
||||||
|
<item name="android:insetLeft">8dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Widget.Vector.Button.Text.LocationLive">
|
<style name="Widget.Vector.Button.Text.LocationLive">
|
||||||
|
@ -14,8 +17,11 @@
|
||||||
<item name="android:background">@android:color/transparent</item>
|
<item name="android:background">@android:color/transparent</item>
|
||||||
<item name="android:textAppearance">@style/TextAppearance.Vector.Body.Medium</item>
|
<item name="android:textAppearance">@style/TextAppearance.Vector.Body.Medium</item>
|
||||||
<item name="android:textColor">?colorError</item>
|
<item name="android:textColor">?colorError</item>
|
||||||
<item name="android:padding">0dp</item>
|
|
||||||
<item name="android:gravity">center</item>
|
<item name="android:gravity">center</item>
|
||||||
|
<item name="android:padding">0dp</item>
|
||||||
|
<item name="android:minWidth">0dp</item>
|
||||||
|
<item name="android:insetRight">12dp</item>
|
||||||
|
<item name="android:insetLeft">12dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="TextAppearance.Vector.Body.BottomSheetDisplayName">
|
<style name="TextAppearance.Vector.Body.BottomSheetDisplayName">
|
||||||
|
@ -36,8 +42,11 @@
|
||||||
<item name="android:background">@android:color/transparent</item>
|
<item name="android:background">@android:color/transparent</item>
|
||||||
<item name="android:textAppearance">@style/TextAppearance.Vector.Body.Medium</item>
|
<item name="android:textAppearance">@style/TextAppearance.Vector.Body.Medium</item>
|
||||||
<item name="android:textColor">?colorError</item>
|
<item name="android:textColor">?colorError</item>
|
||||||
<item name="android:padding">0dp</item>
|
|
||||||
<item name="android:gravity">center</item>
|
<item name="android:gravity">center</item>
|
||||||
|
<item name="android:padding">0dp</item>
|
||||||
|
<item name="android:minWidth">0dp</item>
|
||||||
|
<item name="android:insetRight">16dp</item>
|
||||||
|
<item name="android:insetLeft">16dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Widget.Vector.TextView.Nano.Copyright">
|
<style name="Widget.Vector.TextView.Nano.Copyright">
|
||||||
|
|
|
@ -52,8 +52,7 @@
|
||||||
style="@style/Widget.Vector.Button.Text.BottomSheetStopSharing"
|
style="@style/Widget.Vector.Button.Text.BottomSheetStopSharing"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="16dp"
|
android:text="@string/location_share_live_stop"
|
||||||
android:text="@string/live_location_bottom_sheet_stop_sharing"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
|
@ -37,12 +37,12 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginHorizontal="8dp"
|
android:layout_marginHorizontal="8dp"
|
||||||
tools:text="@string/location_share_live_enabled"
|
|
||||||
android:textColor="?colorOnSurface"
|
android:textColor="?colorOnSurface"
|
||||||
app:layout_constraintBottom_toTopOf="@id/locationLiveMessageBannerSubTitle"
|
app:layout_constraintBottom_toTopOf="@id/locationLiveMessageBannerSubTitle"
|
||||||
app:layout_constraintStart_toEndOf="@id/locationLiveMessageBannerIcon"
|
app:layout_constraintStart_toEndOf="@id/locationLiveMessageBannerIcon"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_chainStyle="packed" />
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
|
tools:text="@string/location_share_live_enabled" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/locationLiveMessageBannerSubTitle"
|
android:id="@+id/locationLiveMessageBannerSubTitle"
|
||||||
|
@ -58,10 +58,10 @@
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/locationLiveMessageBannerStop"
|
android:id="@+id/locationLiveMessageBannerStop"
|
||||||
style="@style/Widget.Vector.Button.Text.LocationLive"
|
style="@style/Widget.Vector.Button.Text.LocationLive"
|
||||||
android:layout_width="45dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="30dp"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/location_share_live_stop"
|
android:text="@string/location_share_live_stop"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@id/locationLiveMessageBannerBackground"
|
app:layout_constraintBottom_toBottomOf="@id/locationLiveMessageBannerBackground"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="@id/locationLiveMessageBannerBackground" />
|
app:layout_constraintTop_toTopOf="@id/locationLiveMessageBannerBackground" />
|
||||||
</merge>
|
</merge>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/locationLiveStatusStop"
|
android:id="@+id/locationLiveStatusStop"
|
||||||
style="@style/Widget.Vector.Button.Text.OnPrimary.LocationLive"
|
style="@style/Widget.Vector.Button.Text.OnPrimary.LocationLive"
|
||||||
android:layout_width="60dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:text="@string/location_share_live_stop"
|
android:text="@string/location_share_live_stop"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/locationLiveStatusContainer"
|
app:layout_constraintBottom_toBottomOf="@id/locationLiveStatusContainer"
|
||||||
|
|
|
@ -3051,7 +3051,8 @@
|
||||||
<string name="live_location_sharing_notification_description">Location sharing is in progress</string>
|
<string name="live_location_sharing_notification_description">Location sharing is in progress</string>
|
||||||
<string name="labs_enable_live_location">Enable Live Location Sharing</string>
|
<string name="labs_enable_live_location">Enable Live Location Sharing</string>
|
||||||
<string name="labs_enable_live_location_summary">Temporary implementation: locations persist in room history</string>
|
<string name="labs_enable_live_location_summary">Temporary implementation: locations persist in room history</string>
|
||||||
<string name="live_location_bottom_sheet_stop_sharing">Stop sharing</string>
|
<!-- TODO remove key -->
|
||||||
|
<string name="live_location_bottom_sheet_stop_sharing" tools:ignore="UnusedResources">Stop sharing</string>
|
||||||
<string name="live_location_bottom_sheet_last_updated_at">Updated %1$s ago</string>
|
<string name="live_location_bottom_sheet_last_updated_at">Updated %1$s ago</string>
|
||||||
|
|
||||||
<string name="message_bubbles">Show Message bubbles</string>
|
<string name="message_bubbles">Show Message bubbles</string>
|
||||||
|
|
Loading…
Reference in a new issue