Avoid potential negative array index access to cached text.
[LibreOffice.git] / android / source / src / java / org / libreoffice / ui / RecentFile.java
blobfdcc688aa140bd57b03ff7a38b0a50c30fa4af8f
1 package org.libreoffice.ui;
3 import android.net.Uri;
5 /**
6 * An entry for a recently used file in the RecentFilesAdapter.
7 */
8 public class RecentFile {
10 private final Uri uri;
11 private final String displayName;
13 public RecentFile(Uri docUri, String name) {
14 uri = docUri;
15 displayName = name;
18 public Uri getUri() {
19 return uri;
22 public String getDisplayName() {
23 return displayName;