-
Notifications
You must be signed in to change notification settings - Fork 26
[WIP] 1517 timeline app add recording button #1518
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
Open
JESDANIELLA
wants to merge
78
commits into
cambridge-cares:main
Choose a base branch
from
JESDANIELLA:1517-timeline-app-add-recording-button
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,852
−761
Open
Changes from 68 commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
72be8cf
timeline-app-add-dropdown-menu : added dropdown menu with icons
JESDANIELLA b5157da
timeline-app-add-recording-button : added recording button and update…
JESDANIELLA c877fec
timeline-app-add-recording-button : added recording button and update…
JESDANIELLA 9411e46
timeline-app-add-recording-button : added recording button and update…
JESDANIELLA 41cd4f4
timeline-app-add-recording-button : added recording button and update…
JESDANIELLA 8527dc5
timeline-app-add-recording-button : added recording button and update…
JESDANIELLA 4ee349a
timeline-app-add-recording-button : added recording button and update…
JESDANIELLA adca66a
timeline-app-add-recording-button : moved the dropwdown menu and onbo…
JESDANIELLA 1773548
timeline-app-add-recording-button : added initial timeline settings p…
JESDANIELLA aa3a08e
timeline-app-add-recording-button : added initial timeline settings p…
JESDANIELLA 2a7702b
timeline-app-add-recording-button : location permission request to be…
JESDANIELLA b4539a2
timeline-app-add-recording-button : location permission request to be…
JESDANIELLA b0cc7dd
timeline-app-add-recording-button : added the timeline settings fragment
JESDANIELLA 44bcb9c
timeline-app-add-recording-button : added the fix for UserDialogFragm…
JESDANIELLA fb27228
timeline-app-add-recording-button : modified the user dialog menu layout
JESDANIELLA 45c85d2
timeline-app-add-recording-button : added topics to the help page and…
JESDANIELLA 8d2c67c
timeline-app-add-recording-button : make the recording button positio…
JESDANIELLA 06fa8cf
timeline-app-add-recording-button : make the recording button positio…
JESDANIELLA da10f00
timeline-app-add-recording-button : added automatic scrolling with a …
JESDANIELLA 850d984
timeline-app-add-recording-button :Added highlight color for datepicker
JESDANIELLA 179ff48
timeline-app-add-recording-button : fixed tooltip positioning to be c…
JESDANIELLA 2b827d3
timeline-app-add-recording-button : updated the recording button back…
JESDANIELLA 5f9c404
timeline-app-add-recording-button : updated the user menu layout and …
JESDANIELLA 61f0983
timeline-app-add-recording-button : redesign permission request
sandradeng20 fe5f23c
timeline-app-add-recording-button : added dot indicators for the logi…
JESDANIELLA db44b64
timeline-app-add-recording-button : added spinner for recording duration
JESDANIELLA dde1809
timeline-app-add-recording-button : updated the quick-start FAB logic…
JESDANIELLA 9bba72d
timeline-app-add-recording-button : added temporary layouts for the h…
JESDANIELLA dbb3cff
timeline-app-add-recording-button : added more tooltips
JESDANIELLA 73a7213
timeline-app-add-recording-button : added placeholders for help items…
JESDANIELLA 66ba132
timeline-app-add-recording-button : added about page
JESDANIELLA 4e80bb4
timeline-app-add-recording-button : added location history page
JESDANIELLA 2386d2e
timeline-app-add-recording-button : added other help sub-pages
JESDANIELLA 3e26d21
timeline-app-add-recording-button : connected the recording page to t…
JESDANIELLA bd41569
timeline-app-add-recording-button : [WIP] added new help sub-pages
JESDANIELLA d97d5db
timeline-app-add-recording-button : added auto-start button (timeline…
JESDANIELLA 6cf1822
timeline-app-add-recording-button : added footer to menu
JESDANIELLA 5463c1f
timeline-app-add-recording-button : modified toggle button to be fixe…
JESDANIELLA c08cc86
timeline-app-add-recording-button : add sensor documentation
JESDANIELLA d4dac28
timeline-app-add-recording-button : modified the help page
JESDANIELLA c2b5ebd
timeline-app-add-recording-button : added map interactions and sensor…
JESDANIELLA d48b8a8
timeline-app-add-recording-button : [WIP] added helpful features and …
JESDANIELLA ca7abbc
timeline-app-add-recording-button : added the rest of the help pages
JESDANIELLA a2a4312
timeline-app-add-recording-button : modified the help sub-pages
JESDANIELLA 5adf9f7
timeline-app-add-recording-button : modified the help sub-pages
JESDANIELLA ac3b591
timeline-app-add-recording-button :removed unused resource
JESDANIELLA 91f8afe
timeline-app-add-recording-button :added back all the changes
JESDANIELLA ca1d17b
timeline-app-add-recording-button : edited the decorator to show grey…
JESDANIELLA 9cf0167
timeline-app-add-recording-button : re-added the help pages
JESDANIELLA 43eb4b5
timeline-app-add-recording-button : re-added the help pages
JESDANIELLA 0b771bf
timeline-app-add-recording-button : added the logout logic to user me…
JESDANIELLA 3223457
timeline-app-add-recording-button : added the logout logic to user me…
JESDANIELLA 1405672
timeline-app-add-recording-button : added and implemented the about p…
JESDANIELLA e7893ce
timeline-app-add-recording-button : added images to the help page
JESDANIELLA ea467cd
timeline-app-add-recording-button : removed the sharedpref from main …
JESDANIELLA 3cd6fc2
timeline-app-add-recording-button : moved user dialog to feature:time…
JESDANIELLA ce106c1
timeline-app-add-recording-button : removed unnecessary lines in app_nav
JESDANIELLA 0641c73
timeline-app-add-recording-button
JESDANIELLA 19c530e
timeline-app-add-recording-button: updated the preference for about p…
JESDANIELLA df22186
timeline-app-add-recording-button: modified the layout and look for t…
JESDANIELLA f3b9345
1517-timeline-app-add-recording-button: fix sensor selection state ma…
sandradeng20 f145a9b
Merge branch '1517-timeline-app-add-recording-button' of https://gith…
sandradeng20 4a119eb
timeline-app-add-recording-button: decoupled the fragement:user depen…
JESDANIELLA 890f98d
Merge remote-tracking branch 'origin/1517-timeline-app-add-recording-…
JESDANIELLA d91b82b
1517-timeline-app-add-recording-button: fix ui coloring
sandradeng20 37d39c6
Merge branch '1517-timeline-app-add-recording-button' of https://gith…
sandradeng20 e64a50c
timeline-app-add-recording-button: decoupled the fragement:user depen…
JESDANIELLA 1a4325b
Merge remote-tracking branch 'origin/1517-timeline-app-add-recording-…
JESDANIELLA 237cbdd
timeline-app-add-recording-button: remove redundant isTriggerPending…
JESDANIELLA cf0f9ae
timeline-app-add-recording-button: added images to the help subpages
JESDANIELLA 10052ce
timeline-app-add-recording-button: Fix logout in UserDialogFragment b…
JESDANIELLA eadd26f
timeline-app-add-recording-button: Fix user menu flashing after re-lo…
JESDANIELLA a9f2808
timeline-app-add-recording-button: replace navigateUp() with explicit…
JESDANIELLA 655a858
timeline-app-add-recording-button: simplify location permission handl…
JESDANIELLA 045f2a1
timeline-app-add-recording-button: removed unused files and scope Rec…
JESDANIELLA f38bbfc
timeline-app-add-recording-button: scope RecordingViewModel to UserDi…
JESDANIELLA 771ebeb
timeline-app-add-recording-button: remove unnecessary deep links from…
JESDANIELLA 5a666ef
timeline-app-add-recording-button: move TooltipSequence strings to s…
JESDANIELLA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
Apps/TimelineApp/app/src/main/java/uk/ac/cam/cares/jps/timeline/MainActivity.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
Apps/TimelineApp/app/src/main/res/drawable/ic_launcher_background.xml
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MainActivity"> | ||
|
||
<androidx.fragment.app.FragmentContainerView | ||
android:name="androidx.navigation.fragment.NavHostFragment" | ||
app:navGraph="@navigation/app_navigation" | ||
app:defaultNavHost="true" | ||
android:id="@+id/nav_host_fragment" | ||
android:name="androidx.navigation.fragment.NavHostFragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
|
||
android:layout_height="match_parent" | ||
app:defaultNavHost="true" | ||
app:navGraph="@navigation/app_navigation" | ||
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
JESDANIELLA marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<resources> | ||
<string name="app_name">TWA Timeline</string> | ||
|
||
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
Apps/TimelineApp/core/login/src/main/res/raw/auth_config.json
JESDANIELLA marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"client_id": "", | ||
"redirect_uri": "", | ||
"end_session_redirect_uri": "", | ||
"authorization_scope": "", | ||
"discovery_uri": "", | ||
"authorization_endpoint_uri": "", | ||
"token_endpoint_uri": "", | ||
"registration_endpoint_uri": "", | ||
"user_info_endpoint_uri": "", | ||
"https_required": true | ||
"client_id": "twa-timeline-app", | ||
"redirect_uri": "uk.ac.cam.cares.jps.twatimelineapp:/oauth2redirect", | ||
"end_session_redirect_uri": "uk.ac.cam.cares.jps.twatimelineapp:/oauth2redirect", | ||
"authorization_scope": "openid email profile offline_access", | ||
"discovery_uri": "http://172.30.80.1:3839/keycloak/realms/timeline/.well-known/openid-configuration", | ||
"authorization_endpoint_uri": "", | ||
"token_endpoint_uri": "", | ||
"registration_endpoint_uri": "", | ||
"user_info_endpoint_uri": "", | ||
"https_required": false | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...App/core/sensor/src/main/java/uk/ac/cam/cares/jps/sensor/permission/PermissionHelper.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package uk.ac.cam.cares.jps.sensor.permission; | ||
|
||
|
||
import androidx.activity.result.ActivityResultLauncher; | ||
import androidx.activity.result.contract.ActivityResultContracts; | ||
import androidx.fragment.app.Fragment; | ||
|
||
import org.apache.log4j.Logger; | ||
|
||
import java.util.LinkedList; | ||
import java.util.List; | ||
import java.util.Queue; | ||
|
||
public class PermissionHelper { | ||
private final Fragment fragment; | ||
private Queue<String> permissionQueue = new LinkedList<>(); | ||
private ActivityResultLauncher<String> launcher; | ||
private final Logger LOGGER; | ||
private Runnable onAllPermissionsHandled; | ||
|
||
public PermissionHelper(Fragment fragment) { | ||
this.fragment = fragment; | ||
LOGGER = Logger.getLogger(PermissionHelper.class.getName() + "-" + fragment.getClass().getName()); | ||
registerPermissionLauncher(); | ||
} | ||
|
||
private void registerPermissionLauncher() { | ||
if (launcher == null) { | ||
launcher = fragment.registerForActivityResult( | ||
new ActivityResultContracts.RequestPermission(), | ||
isGranted -> handlePermissionResult(isGranted) | ||
); | ||
} | ||
} | ||
|
||
public void requestPermissionsInChain(List<String> permissions, Runnable onAllPermissionsHandled) { | ||
LOGGER.info(String.format("Received permissions: %s", permissions)); | ||
this.onAllPermissionsHandled = onAllPermissionsHandled; | ||
|
||
permissionQueue.clear(); | ||
permissionQueue.addAll(permissions); | ||
launchNextPermission(); | ||
} | ||
|
||
private void launchNextPermission() { | ||
String nextPermission = permissionQueue.poll(); | ||
if (nextPermission != null) { | ||
launcher.launch(nextPermission); | ||
} else { | ||
LOGGER.info("All permissions processed!"); | ||
onAllPermissionsHandled.run(); | ||
} | ||
} | ||
|
||
private void handlePermissionResult(boolean granted) { | ||
if (granted) { | ||
launchNextPermission(); | ||
} | ||
} | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.