Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed343145 authored by Cassy Chun-Crogan's avatar Cassy Chun-Crogan
Browse files

[DocsUI M3] Add tooltip for long file names

Add a tooltip to display the full file name on a long press
or hover over the item.

See the bug for a demo.

Bug: 406304742
Test: m DocumentsUIGoogle && manual inspection
Flag: com.android.documentsui.flags.use_material3
Change-Id: I6f91e9434b4ef8b55161292686494eb35402a6e9
parent 2b45e2d8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -274,6 +274,8 @@ final class GridDocumentHolder extends DocumentHolder {

        mTitle.setText(mDoc.displayName, TextView.BufferType.SPANNABLE);
        mTitle.setVisibility(View.VISIBLE);
        // Show the full name in a tooltip.
        itemView.setTooltipText(mDoc.displayName);

        // If file is partial, we want to show summary field as that's more relevant than fileSize
        // and date