- 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

@ -10,12 +10,20 @@ public class PpssppActivity extends NativeActivity {
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);
}