Esempio 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);
   }
 }
Esempio 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));
   }
 }