Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary logs and downgrade other log messages from error t…
Browse files Browse the repository at this point in the history
…o debug (#1711)
  • Loading branch information
bluemarvin authored Sep 12, 2019
1 parent 4d61b8d commit f750a5a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions app/src/noapi/java/org/mozilla/vrbrowser/PlatformActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ protected void onCreate(Bundle savedInstanceState) {
new GLSurfaceView.Renderer() {
@Override
public void onSurfaceCreated(GL10 gl, EGLConfig config) {
Log.e(LOGTAG, "In onSurfaceCreated");
Log.d(LOGTAG, "In onSurfaceCreated");
activityCreated(getAssets());
mSurfaceCreated = true;
notifyPendingEvents();
}

@Override
public void onSurfaceChanged(GL10 gl, int width, int height) {
Log.e(LOGTAG, "In onSurfaceChanged");
Log.d(LOGTAG, "In onSurfaceChanged");
updateViewport(width, height);
}

Expand Down Expand Up @@ -130,7 +130,6 @@ public boolean onTouchEvent(MotionEvent aEvent) {
return false;
}

Log.e(LOGTAG, "real onTouchEvent: " + aEvent.toString());
final boolean isDown = down;

final float xx = aEvent.getX(0);
Expand All @@ -150,8 +149,6 @@ public boolean onGenericMotionEvent(MotionEvent aEvent) {
return false;
}

// Log.e(LOGTAG, "real onGenericMotionEvent: " + aEvent.toString());

final float xx = aEvent.getX(0);
final float yy = aEvent.getY(0);
queueRunnable(() -> touchEvent(false, xx, yy));
Expand All @@ -160,7 +157,7 @@ public boolean onGenericMotionEvent(MotionEvent aEvent) {

@Override
protected void onPause() {
Log.e(LOGTAG, "PlatformActivity onPause");
Log.d(LOGTAG, "PlatformActivity onPause");
synchronized (activityPausedRunnable) {
queueRunnable(activityPausedRunnable);
try {
Expand All @@ -175,7 +172,7 @@ protected void onPause() {

@Override
protected void onResume() {
Log.e(LOGTAG, "PlatformActivity onResume");
Log.d(LOGTAG, "PlatformActivity onResume");
super.onResume();
mView.onResume();
queueRunnable(activityResumedRunnable);
Expand All @@ -184,7 +181,7 @@ protected void onResume() {

@Override
protected void onDestroy() {
Log.e(LOGTAG, "PlatformActivity onDestroy");
Log.d(LOGTAG, "PlatformActivity onDestroy");
super.onDestroy();
synchronized (activityDestroyedRunnable) {
queueRunnable(activityDestroyedRunnable);
Expand Down Expand Up @@ -261,10 +258,10 @@ private void setupUI() {

private void updateUI(final int aMode) {
if (aMode == 0) {
Log.e(LOGTAG, "Got render mode of Stand Alone");
Log.d(LOGTAG, "Got render mode of Stand Alone");
findViewById(R.id.click_button).setVisibility(View.GONE);
} else {
Log.e(LOGTAG, "Got render mode of Immersive");
Log.d(LOGTAG, "Got render mode of Immersive");
findViewById(R.id.click_button).setVisibility(View.VISIBLE);
}
}
Expand Down

0 comments on commit f750a5a

Please sign in to comment.