From 399b2ebca911f3523bd1b9d346eab9c9b9862303 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 22 Oct 2015 18:13:51 -0700 Subject: #583 Switch to using the system lib version of PopupMenu since the support lib version always opens below even if there is room above --- app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java b/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java index 000832d7..4734e8d0 100644 --- a/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java +++ b/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java @@ -20,10 +20,10 @@ import android.content.SharedPreferences; import android.content.res.Resources; import android.os.Build; import android.support.v7.view.ActionMode; -import android.support.v7.widget.PopupMenu; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.util.TypedValue; +import android.view.Gravity; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; @@ -31,6 +31,7 @@ import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager; +import android.widget.PopupMenu; import java.util.ArrayList; import java.util.Arrays; -- cgit v1.2.3