I'm using this code on MainActivity for a splashscreen that works perfectly

```
final ImageView splash1 = (ImageView) this.findViewById(R.id.splash);

    new Handler().postDelayed(new Runnable(){
        @Override
        public void run() {
            splash1.setVisibility(View.GONE);
        }
    }, 1000);

```

but everytime I'm back on MainActivity (where the main menu is), the splashScreen is there again. Is there a way to keep using this code, and just adding an if condition do not see the splashScreen after the first time?
(e.g: a variable that changes when the app loads)
Thanks in advance