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

Commit b5c716fe authored by BadDaemon's avatar BadDaemon Committed by Gerrit Code Review
Browse files

Improve Recents-View

When no tasks are in recents, allow pressing once on view
to close it

Change-Id: I017510e8faeb871cd50173fd7d445e51ba55b8ae
parent 77874161
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -252,10 +252,17 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
                mEmptyView = mEmptyViewStub.inflate();
            }
            mEmptyView.setVisibility(View.VISIBLE);
            mEmptyView.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    dismissRecentsToHome(true);
                }
            });
            mRecentsView.setSearchBarVisibility(View.GONE);
        } else {
            if (mEmptyView != null) {
                mEmptyView.setVisibility(View.GONE);
                mEmptyView.setOnClickListener(null);
            }
            boolean showSearchBar = CMSettings.System.getInt(getContentResolver(),
                       CMSettings.System.RECENTS_SHOW_SEARCH_BAR, 1) == 1;