зеркало из https://github.com/mozilla/gecko-dev.git
b=766998; fennec profiling broken by webapp intent changes; r=wesj
This commit is contained in:
Родитель
3ea8a0bac4
Коммит
4d9a071659
|
@ -2152,7 +2152,7 @@ abstract public class GeckoApp
|
|||
return uri;
|
||||
|
||||
final String action = intent.getAction();
|
||||
if (action.startsWith(ACTION_WEBAPP_PREFIX) || ACTION_BOOKMARK.equals(action)) {
|
||||
if ((action != null && action.startsWith(ACTION_WEBAPP_PREFIX)) || ACTION_BOOKMARK.equals(action)) {
|
||||
uri = intent.getStringExtra("args");
|
||||
if (uri != null && uri.startsWith("--url=")) {
|
||||
uri.replace("--url=", "");
|
||||
|
|
|
@ -73,9 +73,12 @@ public class GeckoThread extends Thread {
|
|||
|
||||
// find the right intent type
|
||||
final String action = mIntent.getAction();
|
||||
String type = action.startsWith(GeckoApp.ACTION_WEBAPP_PREFIX) ? "-webapp" :
|
||||
GeckoApp.ACTION_BOOKMARK.equals(action) ? "-bookmark" :
|
||||
null;
|
||||
String type = null;
|
||||
|
||||
if (action != null && action.startsWith(GeckoApp.ACTION_WEBAPP_PREFIX))
|
||||
type = "-webapp";
|
||||
else if (GeckoApp.ACTION_BOOKMARK.equals(action))
|
||||
type = "-bookmark";
|
||||
|
||||
String args = mIntent.getStringExtra("args");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче