Started structure for grouping events in data sharing screen

This commit is contained in:
Graham Jones
2025-02-09 19:58:20 +00:00
parent 9ac505fc07
commit 5f8d6c0585

View File

@@ -54,6 +54,7 @@ public class LogManagerControlActivity extends AppCompatActivity {
private UiTimer mUiTimer;
private ArrayList<HashMap<String, String>> mEventsList;
private ArrayList<HashMap<String, String>> mRemoteEventsList;
private ArrayList<ArrayList<HashMap<String, String>>> mGroupedRemoteEventsList; // Each item is a list of event objects, similar to mRemoteEventsList
private ArrayList<HashMap<String, String>> mSysLogList;
private SdServiceConnection mConnection;
private OsdUtil mUtil;
@@ -281,6 +282,7 @@ public class LogManagerControlActivity extends AppCompatActivity {
Log.v(TAG, "getRemoteEvents - skipping warning or NDA record");
}
}
createGroupedEventsList();
Log.v(TAG, "getRemoteEvents() - set mRemoteEventsList(). Updating UI");
updateUi();
} catch (JSONException e) {
@@ -293,6 +295,15 @@ public class LogManagerControlActivity extends AppCompatActivity {
});
}
private void createGroupedEventsList() {
/**
* Reads the complete list of remote events mRemoteEventsList and creates a new list mGroupedRemoteEventsList
* where each item is a list of events that comprise a group based on time (all events within a 3 minute period are grouped together).
*/
Log.i(TAG, "createGroupedEventsList()");
mGroupedRemoteEventsList = new ArrayList<ArrayList<HashMap<String,String>>>();
// FIXME - Make this do something!
}
private void updateUi() {
Log.i(TAG, "updateUi()");