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

Commit eacbdd3c authored by Pinyao Ting's avatar Pinyao Ting
Browse files

allow smart folder to support more than 2 items

Bug: 144975153
Test: Manual
Change-Id: Ib5ff34863312d8b8da7615371e353bb697261790
parent ec30c5ed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -417,7 +417,8 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
     * Show suggested folder title.
     */
    public void showSuggestedTitle(String[] suggestName) {
        if (FeatureFlags.FOLDER_NAME_SUGGEST.get() && mInfo.contents.size() == 2) {
        if (FeatureFlags.FOLDER_NAME_SUGGEST.get()
                && TextUtils.isEmpty(mFolderName.getText().toString())) {
            if (suggestName.length > 0 && !TextUtils.isEmpty(suggestName[0])) {
                mFolderName.setHint(suggestName[0]);
                mFolderName.setText(suggestName[0]);