Skip to content

Commit caaa27b

Browse files
changes for new lib
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 2165ffd commit caaa27b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/src/main/java/com/owncloud/android/ui/adapter/GalleryAdapter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import android.content.Context
2929
import android.os.Handler
3030
import android.os.Looper
3131
import android.view.LayoutInflater
32+
import android.view.View
3233
import android.view.ViewGroup
3334
import androidx.annotation.VisibleForTesting
3435
import com.afollestad.sectionedrecyclerview.SectionedRecyclerViewAdapter
@@ -130,7 +131,7 @@ class GalleryAdapter(
130131
return files.size
131132
}
132133

133-
override fun getPopupText(position: Int): String {
134+
override fun getPopupText(p0: View, position: Int): CharSequence {
134135
return DisplayUtils.getDateByPattern(
135136
files[getRelativePosition(position).section()].date,
136137
context,

app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ public void setShowMetadata(boolean bool) {
11111111

11121112
@NonNull
11131113
@Override
1114-
public String getPopupText(int position) {
1114+
public String getPopupText(View view, int position) {
11151115
OCFile file = getItem(position);
11161116

11171117
if (file == null || sortOrder == null) {

app/src/main/java/com/owncloud/android/ui/fragment/util/GalleryFastScrollViewHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class GalleryFastScrollViewHelper(
238238
return if (position == RecyclerView.NO_POSITION) {
239239
null
240240
} else {
241-
popupTextProvider.getPopupText(position).toString()
241+
popupTextProvider.getPopupText(mView, position).toString()
242242
}
243243
}
244244

0 commit comments

Comments
 (0)