Skip to content

Commit

Permalink
changes for new lib
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Feb 23, 2024
1 parent 2165ffd commit caaa27b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import android.content.Context
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.VisibleForTesting
import com.afollestad.sectionedrecyclerview.SectionedRecyclerViewAdapter
Expand Down Expand Up @@ -130,7 +131,7 @@ class GalleryAdapter(
return files.size
}

override fun getPopupText(position: Int): String {
override fun getPopupText(p0: View, position: Int): CharSequence {
return DisplayUtils.getDateByPattern(
files[getRelativePosition(position).section()].date,
context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ public void setShowMetadata(boolean bool) {

@NonNull
@Override
public String getPopupText(int position) {
public String getPopupText(View view, int position) {
OCFile file = getItem(position);

if (file == null || sortOrder == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class GalleryFastScrollViewHelper(
return if (position == RecyclerView.NO_POSITION) {
null
} else {
popupTextProvider.getPopupText(position).toString()
popupTextProvider.getPopupText(mView, position).toString()
}
}

Expand Down

0 comments on commit caaa27b

Please sign in to comment.