V4.0.0n - Fixed issue with system not being able to shut down after using the EditEvent activity. Improvements to wording of about and intorduction dialogs.

This commit is contained in:
Graham Jones
2022-03-01 13:55:44 +00:00
parent 0eb4a4ac2e
commit 8b196f4f37
5 changed files with 49 additions and 11 deletions

View File

@@ -86,13 +86,21 @@ public class EditEventActivity extends AppCompatActivity {
@Override
protected void onStart() {
super.onStart();
Log.v(TAG, "onStart()");
Log.i(TAG, "onStart()");
mUtil.bindToServer(getApplicationContext(), mConnection);
waitForConnection();
updateUi();
}
@Override
protected void onStop() {
super.onStop();
Log.i(TAG, "onStop()");
mUtil.unbindFromServer(getApplicationContext(), mConnection);
}
private void waitForConnection() {
// We want the UI to update as soon as it is displayed, but it takes a finite time for
// the mConnection to bind to the service, so we delay half a second to give it chance