@@ -288,7 +288,7 @@ else if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL)
288288 view .getContext ().getDrawable (R .drawable .user_profile ).clearColorFilter ();
289289 view .invalidate ();
290290 // Go to the profile activity with a nice slide animation
291- goToActivity (ProfileActivity .class );
291+ goToProfileActivity (ProfileActivity .class , "no" );
292292 }
293293
294294 return true ;
@@ -653,7 +653,7 @@ protected void loadProfile() {
653653 if (outputLang != -1 )
654654 setOutputLanguage (outputLang );
655655 } else {
656- goToActivity (ProfileActivity .class );
656+ goToProfileActivity (ProfileActivity .class , "yes" );
657657 Toast .makeText (getApplicationContext (), "Create your profile!" , Toast .LENGTH_LONG ).show ();
658658 }
659659 }
@@ -682,10 +682,11 @@ public static int getScreenHeight() {
682682 return Resources .getSystem ().getDisplayMetrics ().heightPixels ;
683683 }
684684
685- void goToActivity (Class activity ) { // Function that goes from the main activity to another one
685+ void goToProfileActivity (Class activity , String firstTime ) { // Function that goes from the main activity to profile one
686686 Intent intent = new Intent (MainActivity .this , activity );
687687 intent .putExtra ("lensFacing" , lensFacing );
688688 intent .putExtra ("mode" , currentMode .ordinal ());
689+ intent .putExtra ("firstTime" , firstTime );
689690 startActivity (intent );
690691 }
691692
0 commit comments