0
votes

I am making small changes to an open-source app I use called 'WaniKani for Android'. When I long-press some text (in WebReviewActivity), the copy-paste contextual action bar appears, but the regular action bar does not hide itself (as it should, according to the documentation).

Here is a screenshot of the app running on my phone (JY-G4 Android 4.2.1):

enter image description here

I found this very similar question where CommonsWare points out that an app using appcompat-v7 (which this project does) should use getSupportActionBar() and not getActionBar(). Using a few searches, I've verified that only getSupportActionBar() is used in this project. All ActionBar and ActionBarActivity classes originate from

import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;

The gradle file specifies appcompat-v7:+.

I'm not very experienced with Android programming, so I'm not sure where else to look in order to solve this problem. Any help would be appreciated.

1

1 Answers

2
votes

Use <item name="windowActionModeOverlay">true</item> in your app theme