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
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue