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

Commit 9f997db3 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 e62b0a0e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -245,11 +245,18 @@ 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);
            findViewById(R.id.clear_recents).setVisibility(View.GONE);
        } else {
            if (mEmptyView != null) {
                mEmptyView.setVisibility(View.GONE);
                mEmptyView.setOnClickListener(null);
            }
            findViewById(R.id.clear_recents).setVisibility(View.VISIBLE);
            boolean showSearchBar = Settings.System.getInt(getContentResolver(),