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

Remove unnecessary logs and downgrade other log messages from error to debug #1711

Merged
merged 1 commit into from
Sep 12, 2019
Merged
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
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 @@ -81,15 +81,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 @@ -128,7 +128,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 @@ -148,8 +147,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 @@ -158,7 +155,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 @@ -173,7 +170,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 @@ -182,7 +179,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 @@ -259,10 +256,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