mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
remove one-time location-streaming; it's not implemented and it's unclear ux-wise
This commit is contained in:
@@ -135,7 +135,6 @@
|
||||
|
||||
|
||||
<string-array name="share_location_durations">
|
||||
<item>@string/share_location_once</item>
|
||||
<item>@string/share_location_for_5_minutes</item>
|
||||
<item>@string/share_location_for_30_minutes</item>
|
||||
<item>@string/share_location_for_one_hour</item>
|
||||
|
||||
@@ -33,12 +33,11 @@ public class ShareLocationDialog extends AlertDialog {
|
||||
|
||||
switch (which) {
|
||||
default:
|
||||
case 0: shareLocationUnit = 1; break;
|
||||
case 1: shareLocationUnit = 5 * 60; break;
|
||||
case 2: shareLocationUnit = 30 * 60; break;
|
||||
case 3: shareLocationUnit = 60 * 60; break;
|
||||
case 4: shareLocationUnit = 60 * 60 * 2; break;
|
||||
case 5: shareLocationUnit = 60 * 60 * 6; break;
|
||||
case 0: shareLocationUnit = 5 * 60; break;
|
||||
case 1: shareLocationUnit = 30 * 60; break;
|
||||
case 2: shareLocationUnit = 60 * 60; break;
|
||||
case 3: shareLocationUnit = 2 * 60 * 60; break;
|
||||
case 4: shareLocationUnit = 6 * 60 * 60; break;
|
||||
}
|
||||
|
||||
listener.onSelected(shareLocationUnit);
|
||||
|
||||
Reference in New Issue
Block a user