- Moved SHORTCUT_EXTRA_KEY and shortcut query here.

- Call super.setShortcutParam(getIntent().getStringExtra(SHORTCUT_EXTRA_KEY))
before super.onCreate()
This commit is contained in:
valef 2014-01-06 18:02:32 +07:00
parent ac6667d463
commit 02b5bd339c

View file

@ -6,16 +6,24 @@ import com.henrikrydgard.libnative.NativeActivity;
import com.google.analytics.tracking.android.EasyTracker;
public class PpssppActivity extends NativeActivity {
static {
System.loadLibrary("ppsspp_jni");
static {
System.loadLibrary("ppsspp_jni");
}
// Key used by shortcut.
public static final String SHORTCUT_EXTRA_KEY = "org.ppsspp.ppsspp.Shortcuts";
public PpssppActivity() {
super();
}
@Override
public void onCreate(Bundle savedInstanceState) {
// In case app launched from homescreen shortcut, get shortcut parameter
// using Intent extra string. Intent extra will be null if launch normal
// (from app drawer).
super.setShortcutParam(getIntent().getStringExtra(SHORTCUT_EXTRA_KEY));
super.onCreate(savedInstanceState);
}
@ -30,4 +38,4 @@ public class PpssppActivity extends NativeActivity {
super.onStop();
EasyTracker.getInstance(this).activityStop(this);
}
}
}