Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlaybackState: Enable Actions #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/PlaybackState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

using namespace jni;

/*

int64_t CJNIPlaybackState::ACTION_FAST_FORWARD;
int64_t CJNIPlaybackState::ACTION_PAUSE;
int64_t CJNIPlaybackState::ACTION_PLAY;
Expand All @@ -37,7 +37,7 @@ int64_t CJNIPlaybackState::ACTION_SKIP_TO_NEXT;
int64_t CJNIPlaybackState::ACTION_SKIP_TO_PREVIOUS;
int64_t CJNIPlaybackState::ACTION_SKIP_TO_QUEUE_ITEM;
int64_t CJNIPlaybackState::ACTION_STOP;
*/

int64_t CJNIPlaybackState::PLAYBACK_POSITION_UNKNOWN;
int CJNIPlaybackState::STATE_BUFFERING;
int CJNIPlaybackState::STATE_CONNECTING;
Expand All @@ -58,7 +58,6 @@ static std::string s_className = "android/media/session/PlaybackState";
void CJNIPlaybackState::PopulateStaticFields()
{
jhclass clazz = find_class(s_className.c_str());
/*
ACTION_FAST_FORWARD = get_static_field<jlong>(clazz, "ACTION_FAST_FORWARD");
ACTION_PAUSE = get_static_field<jlong>(clazz, "ACTION_PAUSE");
ACTION_PLAY = get_static_field<jlong>(clazz, "ACTION_PLAY");
Expand All @@ -72,7 +71,6 @@ void CJNIPlaybackState::PopulateStaticFields()
ACTION_SKIP_TO_PREVIOUS = get_static_field<jlong>(clazz, "ACTION_SKIP_TO_PREVIOUS");
ACTION_SKIP_TO_QUEUE_ITEM = get_static_field<jlong>(clazz, "ACTION_SKIP_TO_QUEUE_ITEM");
ACTION_STOP = get_static_field<jlong>(clazz, "ACTION_STOP");
*/
PLAYBACK_POSITION_UNKNOWN = get_static_field<jlong>(clazz, "PLAYBACK_POSITION_UNKNOWN");
STATE_BUFFERING = get_static_field<jint>(clazz, "STATE_BUFFERING");
STATE_CONNECTING = get_static_field<jint>(clazz, "STATE_CONNECTING");
Expand Down
2 changes: 0 additions & 2 deletions src/PlaybackState.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class CJNIPlaybackState : public CJNIBase
CJNIPlaybackState(const jni::jhobject &object) : CJNIBase(object) {}
virtual ~CJNIPlaybackState(){}

/* Clash with internal macro
static int64_t ACTION_FAST_FORWARD;
static int64_t ACTION_PAUSE;
static int64_t ACTION_PLAY;
Expand All @@ -42,7 +41,6 @@ class CJNIPlaybackState : public CJNIBase
static int64_t ACTION_SKIP_TO_PREVIOUS;
static int64_t ACTION_SKIP_TO_QUEUE_ITEM;
static int64_t ACTION_STOP;
*/
static int64_t PLAYBACK_POSITION_UNKNOWN;
static int STATE_BUFFERING;
static int STATE_CONNECTING;
Expand Down