remove one-time location-streaming; it's not implemented and it's unclear ux-wise

This commit is contained in:
B. Petersen
2019-04-19 00:23:41 +02:00
parent 5a644af56f
commit bf040dfe62
2 changed files with 5 additions and 7 deletions
-1
View File
@@ -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);