Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More gui work #18

Merged
merged 82 commits into from
Feb 19, 2019
Merged

More gui work #18

merged 82 commits into from
Feb 19, 2019

Conversation

timhot
Copy link
Collaborator

@timhot timhot commented Feb 14, 2019

Mostly finished work on new GUI so want to merge back into Master
Next - once back in Master, I'll add automatic testing back in and prune dead code/comments

switches to also use listener and ischecked correctly
Changed switch text size to AppCompat.Large"
Changed switch text size to AppCompat.Large"
Removed limit on number of files uploaded (as wakelock that was
implemented ages ago should have fixed the time out issue)
Background colour now dark green on all activities
Changed app name under icon on phone main screen to Cacophony so it fits
Moved Test Record activity into main setup 'wizard'
Testing activity to Frequency activity.

Added logic on Testing activity so can only use 'Very frequent recordings'
and 'Short recordings' if using Test server.
… activity loads:

if(!buttonView.isShown()){
                    return;
                }
causing an extra recording to fire after test record button was pressed.
   uploadingIdlingResource.increment();

  in RecordAndUpload

  as it was crashing - need to relook at this when get back to automated testing.
Added functionality for Help icon on each Activity
Todo: Write appropriate help for each activity
Testing Activity hidden as default, enabled with secret hand shake
Upload button disabled if no recordings to upload
Testing Activity hidden as default, enabled with secret hand shake
Upload button disabled if no recordings to upload
Testing Activity hidden as default, enabled with secret hand shake
Upload button disabled if no recordings to upload
Increased font in some activities
Moved upload files activity to Advanced and renamed it to Manage Recordings.
Change back and next button text
Modified what fields say and show on Register Activity
…e unregistering the reciever when the fragment goes from view - but the 'are you sure' dialog does this. Now register and unregister the broadcast reciever on the onCreate and onStop methods.
Fixed: I've put the radio buttons in a scroll view..
… uploading):

Added message to explain that you can swipe left/right.  Shortened the title of the first screen in Advanced to make it clearer that you can swipe.
… uploading):

Added message to explain that you can swipe left/right.  Shortened the title of the first screen in Advanced to make it clearer that you can swipe.
Finished taking yes/no off switches.
Next look at GPS
Copy link
Member

@mjs mjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot here! Looks good to me. Just some little things.

//getView().findViewById(R.id.btnRecordNow).setEnabled(true);
btnRecordNow.setEnabled(true);
btnRecordNow.setVisibility(View.VISIBLE);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if messageType is made uppercase first then you could use a switch statement here instead. That would probably be a little less verbose.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current version of Java that Android uses does not allow switch with Strings. I probably should have used enumerations... but won't change now.
https://stackoverflow.com/questions/14367629/android-coding-with-switch-string

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. This shows my relative inexperience with Java :)


prefs.setUseVeryFrequentRecordings(false);
// swUseVeryFrequentRecordings.setChecked(false);
// swUseVeryFrequentRecordings.setEnabled(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these commented out sections have to stay around?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed them and have been through all other code and removed similar

// String webTokenBody = Util.decoded(webToken);
// JSONObject jObject = new JSONObject(webTokenBody);
// return jObject.getString("deviceName");
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@timhot
Copy link
Collaborator Author

timhot commented Feb 15, 2019 via email

@timhot timhot merged commit d0beb47 into master Feb 19, 2019
@mjs mjs deleted the More_GUI_Work branch February 21, 2019 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants