Started structure for grouping events in data sharing screen
This commit is contained in:
@@ -54,6 +54,7 @@ public class LogManagerControlActivity extends AppCompatActivity {
|
|||||||
private UiTimer mUiTimer;
|
private UiTimer mUiTimer;
|
||||||
private ArrayList<HashMap<String, String>> mEventsList;
|
private ArrayList<HashMap<String, String>> mEventsList;
|
||||||
private ArrayList<HashMap<String, String>> mRemoteEventsList;
|
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 ArrayList<HashMap<String, String>> mSysLogList;
|
||||||
private SdServiceConnection mConnection;
|
private SdServiceConnection mConnection;
|
||||||
private OsdUtil mUtil;
|
private OsdUtil mUtil;
|
||||||
@@ -281,6 +282,7 @@ public class LogManagerControlActivity extends AppCompatActivity {
|
|||||||
Log.v(TAG, "getRemoteEvents - skipping warning or NDA record");
|
Log.v(TAG, "getRemoteEvents - skipping warning or NDA record");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
createGroupedEventsList();
|
||||||
Log.v(TAG, "getRemoteEvents() - set mRemoteEventsList(). Updating UI");
|
Log.v(TAG, "getRemoteEvents() - set mRemoteEventsList(). Updating UI");
|
||||||
updateUi();
|
updateUi();
|
||||||
} catch (JSONException e) {
|
} 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() {
|
private void updateUi() {
|
||||||
Log.i(TAG, "updateUi()");
|
Log.i(TAG, "updateUi()");
|
||||||
|
|||||||
Reference in New Issue
Block a user