allow unqualified custom actions
This commit is contained in:
parent
be635cf50d
commit
7c657f5754
|
@ -152,10 +152,9 @@ public class AndroidSettingFactory {
|
||||||
name = pack + name;
|
name = pack + name;
|
||||||
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
|
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
|
||||||
} else if (!(name.contains("."))) {
|
} else if (!(name.contains("."))) {
|
||||||
if ((pack == null) || (pack.isEmpty())) {
|
if ((pack != null) && (!pack.isEmpty())) {
|
||||||
throw new IllegalArgumentException("The pack is needed to resolve the full name of " + name + ", but it's empty");
|
name = pack + "." + name;
|
||||||
}
|
}
|
||||||
name = pack + "." + name;
|
|
||||||
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
|
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
|
||||||
} else if ((pack != null) && (name.startsWith(pack))) {
|
} else if ((pack != null) && (name.startsWith(pack))) {
|
||||||
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
|
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
|
||||||
|
|
Loading…
Reference in New Issue