Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger committed Mar 31, 2016
1 parent 12469e3 commit a3b8ad0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/com/owncloud/android/ui/activity/Uploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -459,16 +459,16 @@ private void populateDirectoryList() {
for (OCFile f : files) {
if (f.isFolder()) {
HashMap<String, Object> h = new HashMap<String, Object>();
h.put("dirname", f.getFileName());
h.put("last_mod", DisplayUtils.getRelativeTimestamp(this, f));
h.put("dirname", f);
data.add(h);
}
}

UploaderAdapter sa = new UploaderAdapter(this,
data,
R.layout.uploader_list_item_layout,
new String[] {"dirname"},
new int[] {R.id.filename, R.id.last_mod});
new int[] {R.id.filename},
getStorageManager(), getAccount());

mListView.setAdapter(sa);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private View getView(OCUpload[] uploadsItems, int position, View convertView, Vi
accountNameTextView.setVisibility(View.VISIBLE);
statusTextView.setVisibility(View.VISIBLE);
progressBar.setVisibility(View.GONE);
progressBar.setVisibility(View.GONE);

/// Update information depending of upload details
String status = getStatusText(upload);
Expand Down
6 changes: 3 additions & 3 deletions src/com/owncloud/android/ui/adapter/UploaderAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.datamodel.ThumbnailsCacheManager;
import com.owncloud.android.datamodel.ThumbnailsCacheManager.AsyncDrawable;
import com.owncloud.android.utils.DisplayUtils;
import com.owncloud.android.utils.MimetypeIconUtil;

import java.util.HashMap;
Expand Down Expand Up @@ -74,9 +75,8 @@ public View getView(int position, View convertView, ViewGroup parent) {
ImageView fileIcon = (ImageView) vi.findViewById(R.id.thumbnail);
fileIcon.setTag(file.getFileId());

// TODO enable after #1277 is merged
// TextView lastModV = (TextView) vi.findViewById(R.id.last_mod);
// lastModV.setText(DisplayUtils.getRelativeTimestamp(mContext, file));
TextView lastModV = (TextView) vi.findViewById(R.id.last_mod);
lastModV.setText(DisplayUtils.getRelativeTimestamp(mContext, file));

// get Thumbnail if file is image
if (file.isImage() && file.getRemoteId() != null){
Expand Down
2 changes: 1 addition & 1 deletion src/com/owncloud/android/utils/DisplayUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static CharSequence getRelativeTimestamp(Context context, OCFile file) {
}

@SuppressWarnings("deprecation")
private static CharSequence getRelativeDateTimeString (
public static CharSequence getRelativeDateTimeString (
Context c, long time, long minResolution, long transitionResolution, int flags
){

Expand Down

0 comments on commit a3b8ad0

Please sign in to comment.