remove LG hardware button problem fix because it breaks HW button menus on appcompat now

This commit is contained in:
Andrew Dolgov 2015-06-10 15:07:25 +03:00
parent 913a3e8a83
commit b4e8f0d752

View File

@ -10,7 +10,6 @@ import android.preference.PreferenceManager;
import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBarActivity;
import android.util.Log; import android.util.Log;
import android.view.Display; import android.view.Display;
import android.view.KeyEvent;
import android.widget.Toast; import android.widget.Toast;
import org.fox.ttrss.util.DatabaseHelper; import org.fox.ttrss.util.DatabaseHelper;
@ -62,16 +61,6 @@ public class CommonActivity extends ActionBarActivity {
return m_prefs.getBoolean("show_unread_only", true); return m_prefs.getBoolean("show_unread_only", true);
} }
// fuck you LG FUCK YOU
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU){
openOptionsMenu();
return true;
}
return super.onKeyDown(keyCode, event);
}
// not the same as isSmallScreen() which is mostly about layout being loaded // not the same as isSmallScreen() which is mostly about layout being loaded
public boolean isTablet() { public boolean isTablet() {
return getResources().getConfiguration().smallestScreenWidthDp >= 600; return getResources().getConfiguration().smallestScreenWidthDp >= 600;