diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-01-08 20:44:28 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-01-08 20:44:28 +0100 |
commit | 0f928c60bffc6e6b68930b3b5d42aa506b5bad14 (patch) | |
tree | 3feeb08ab8006bb5bf3648613e00991f788a8977 /src/main/java/de/pixart/messenger/ui | |
parent | 8cf20a8222ee1102edbe47ebec312862042bb0c9 (diff) |
small improvement in ShareLocationActivity
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java | 5 |
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); } } |