public class HistoryFragment extends Fragment implements HistoryListAdapter.onListItemClickListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
HistoryFragment() |
Modifier and Type | Method and Description |
---|---|
static int |
computeTotalTimePauseForId(DbManager dbManager,
long entryId,
java.lang.String date24HoursAgo,
java.lang.String dateNow)
Compute all pause time into interval
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onListItemClickListener(int position)
onClickManager handling clicks on the main List
|
void |
onResume()
Each time the app is resumed, fetch new entry
|
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
void |
updateElementList()
Update the listView by fetching all elements from the db
|
public static final java.lang.String TAG
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)
public void updateElementList()
public static int computeTotalTimePauseForId(DbManager dbManager, long entryId, java.lang.String date24HoursAgo, java.lang.String dateNow)
dbManager
- The database manager, avoiding to create a new instanceentryId
- entry for the wanted sessiondate24HoursAgo
- oldest boundariesdateNow
- interval newest boundariespublic void onResume()
public void onListItemClickListener(int position)
onListItemClickListener
in interface HistoryListAdapter.onListItemClickListener