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

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

[DocsUI M3] Fix crash in grid mode due to missing method in older JDK

Removed usage of CharSequence#isEmpty. This method is not available
in builds made using JDK older than 15

Bug: 403484805
Test: m DocumentsUIGoogle && manual inspection
Flag: com.android.documentsui.flags.use_material3
Change-Id: Id5a8792b012fe079e88315d0bb85527f5b76bc6b
parent b3003fa2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -293,8 +293,8 @@ final class GridDocumentHolder extends DocumentHolder {
            }
        }

        if (mBullet != null && (mDetails.getVisibility() == View.GONE
                || mDate.getText().isEmpty())) {
        if (mBullet != null && (mDetails.getText() == null || mDetails.getText().length() == 0
                || mDate.getText() == null || mDate.getText().length() == 0)) {
            // There is no need for the bullet separating the details and date.
            mBullet.setVisibility(View.GONE);
        }