package io.github.shark_app.shark;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class ShareActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_share);
    }
}

@@ -48,287 +48,960 @@
 oid.
-support.v7.app.AppCompatActivity;%0Aimport android.os.Bundle;%0A%0Apublic class ShareActivity extends AppCompatActivity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_share)
+content.Context;%0Aimport android.content.Intent;%0Aimport android.content.SharedPreferences;%0Aimport android.os.Bundle;%0Aimport android.support.v7.app.AppCompatActivity;%0A%0Apublic class ShareActivity extends AppCompatActivity %7B%0A    public static final String PREFS_NAME = %22SHARK_PREFS%22;%0A    public static final String PREFS_USER_EXISTS_KEY = %22userExists%22;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_share);%0A        boolean userExists = checkIfUserExists();%0A        if (!userExists) %7B%0A            Intent intent = new Intent(this, RegisterActivity.class);%0A            startActivity(intent);%0A        %7D%0A    %7D%0A%0A    private boolean checkIfUserExists()%7B%0A        SharedPreferences settings = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);%0A        boolean userExists = settings.getBoolean(PREFS_USER_EXISTS_KEY, false);%0A        return userExists
 ;%0A  

Add userExists check, start registration if fail