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

Commit 42f27858 authored by Shubham Basu's avatar Shubham Basu
Browse files

function return early before setting the selection. Removed early return

statement

Bug: 171053868
Test: Manual, atest DocumentsUIGoogleTests
Change-Id: I2890e42cb1ccfc801b358ddbaa5d286531f2fa5d
parent c7e0c485
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -89,7 +89,6 @@ final class GridDocumentHolder extends DocumentHolder {
        // But it should be an error to be set to selected && be disabled.
        if (!itemView.isEnabled()) {
            assert(!selected);
            return;
        }

        super.setSelected(selected, animate);
+0 −1
Original line number Diff line number Diff line
@@ -106,7 +106,6 @@ final class ListDocumentHolder extends DocumentHolder {

        if (!itemView.isEnabled()) {
            assert (!selected);
            return;
        }

        super.setSelected(selected, animate);