mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01: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:
1 parent
ac6667d463
commit
02b5bd339c
1 file changed
+11
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user