aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-01-08 20:44:28 +0100
committerChristian Schneppe <christian@pix-art.de>2018-01-08 20:44:28 +0100
commit0f928c60bffc6e6b68930b3b5d42aa506b5bad14 (patch)
tree3feeb08ab8006bb5bf3648613e00991f788a8977 /src/main
parent8cf20a8222ee1102edbe47ebec312862042bb0c9 (diff)
small improvement in ShareLocationActivity
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java b/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java
index 29142f26f..5a1122c7a 100644
--- a/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java
@@ -71,7 +71,8 @@ public class ShareLocationActivity extends LocationActivity implements LocationL
mSnackbar = findViewById(R.id.snackbar);
TextView snackbarAction = findViewById(R.id.snackbar_action);
snackbarAction.setOnClickListener(view -> startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS)));
-
+ showLocation(null, null);
+ setShareButtonEnabled(false);
requestLocationUpdates();
}
@@ -95,6 +96,7 @@ public class ShareLocationActivity extends LocationActivity implements LocationL
super.onResume();
if (isLocationEnabled()) {
this.mSnackbar.setVisibility(View.GONE);
+ showLocation(null, null);
} else {
this.mSnackbar.setVisibility(View.VISIBLE);
}
@@ -159,7 +161,6 @@ public class ShareLocationActivity extends LocationActivity implements LocationL
this.mShareButton.setEnabled(false);
this.mShareButton.setTextColor(0x8a000000);
this.mShareButton.setText(R.string.locating);
- showLocation(null, null);
}
}