diff options
author | Likai Ding <likaid@codeaurora.org> | 2016-05-20 14:21:43 +0800 |
---|---|---|
committer | Likai Ding <likaid@codeaurora.org> | 2016-06-03 15:39:39 +0800 |
commit | 4dc5e6d88c57ca9ab34169572fbef104293bbe82 (patch) | |
tree | 745ac090d61d85a7a91df8cff111e49860a9dd9f /src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java | |
parent | fdb52c1657054bc3ae54c6006a8fd2807a6d7137 (diff) | |
download | android_packages_apps_Gallery2-4dc5e6d88c57ca9ab34169572fbef104293bbe82.tar.gz android_packages_apps_Gallery2-4dc5e6d88c57ca9ab34169572fbef104293bbe82.tar.bz2 android_packages_apps_Gallery2-4dc5e6d88c57ca9ab34169572fbef104293bbe82.zip |
Gallery: remove calls to @hide and internal API/members
CRs-Fixed: 986672
Change-Id: Ib7b9eb494da9c38191f75960f01e62dfbf356205
Diffstat (limited to 'src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java')
-rw-r--r-- | src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java index ace5cec64..892c6d6b9 100644 --- a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java +++ b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java @@ -284,17 +284,17 @@ public class CodeauroraVideoView extends SurfaceView implements MediaPlayerContr * longer have a window, don't bother showing the user an error. */ if (getWindowToken() != null && mErrorDialogShowing == false) { - final Resources r = mContext.getResources(); + final Resources r = getContext().getResources(); int messageId; if (frameworkErr == MediaPlayer.MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK) { - messageId = com.android.internal.R.string.VideoView_error_text_invalid_progressive_playback; + messageId = android.R.string.VideoView_error_text_invalid_progressive_playback; } else { - messageId = com.android.internal.R.string.VideoView_error_text_unknown; + messageId = android.R.string.VideoView_error_text_unknown; } - new AlertDialog.Builder(mContext) + new AlertDialog.Builder(getContext()) .setMessage(messageId) - .setPositiveButton(com.android.internal.R.string.VideoView_error_button, + .setPositiveButton(android.R.string.VideoView_error_button, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* If we get here, there is no onError listener, so @@ -484,7 +484,7 @@ public class CodeauroraVideoView extends SurfaceView implements MediaPlayerContr mMediaPlayer.setOnInfoListener(mOnInfoListener); mMediaPlayer.setOnBufferingUpdateListener(mBufferingUpdateListener); mCurrentBufferPercentage = 0; - mMediaPlayer.setDataSource(mContext, mUri, mHeaders); + mMediaPlayer.setDataSource(getContext(), mUri, mHeaders); mMediaPlayer.setDisplay(mSurfaceHolder); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mMediaPlayer.setScreenOnWhilePlaying(true); @@ -956,7 +956,7 @@ public class CodeauroraVideoView extends SurfaceView implements MediaPlayerContr private boolean isKeyguardLocked() { if (mKeyguardManager == null) { mKeyguardManager = - (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE); + (KeyguardManager) getContext().getSystemService(Context.KEYGUARD_SERVICE); } // isKeyguardSecure excludes the slide lock case. boolean locked = (mKeyguardManager != null) |