Exemplo n.º 1
0
 /**
  * Updates the time that the file was created in view
  *
  * @param milliseconds Unix time to set
  */
 private void setTimeCreated(long milliseconds) {
   TextView tv = (TextView) getView().findViewById(R.id.fdCreated);
   TextView tvLabel = (TextView) getView().findViewById(R.id.fdCreatedLabel);
   if (tv != null) {
     tv.setText(DisplayUtils.unixTimeToHumanReadable(milliseconds));
     tv.setVisibility(View.VISIBLE);
     tvLabel.setVisibility(View.VISIBLE);
   }
 }
Exemplo n.º 2
0
 /**
  * Updates the time that the file was last modified
  *
  * @param milliseconds Unix time to set
  */
 private void setTimeModified(long milliseconds) {
   TextView tv = (TextView) getView().findViewById(R.id.fdModified);
   if (tv != null) {
     tv.setText(DisplayUtils.unixTimeToHumanReadable(milliseconds));
   }
 }