mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
- Moved SHORTCUT_EXTRA_KEY and shortcut query here.
- Call super.setShortcutParam(getIntent().getStringExtra(SHORTCUT_EXTRA_KEY)) before super.onCreate()
This commit is contained in:
parent
ac6667d463
commit
02b5bd339c
1 changed files with 11 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue