allow unqualified custom actions

This commit is contained in:
Martin Mohr 2015-11-27 15:38:19 +01:00 committed by Martin Hecker
parent be635cf50d
commit 7c657f5754
1 changed files with 2 additions and 3 deletions

View File

@ -152,10 +152,9 @@ public class AndroidSettingFactory {
name = pack + name;
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
} else if (!(name.contains("."))) {
if ((pack == null) || (pack.isEmpty())) {
throw new IllegalArgumentException("The pack is needed to resolve the full name of " + name + ", but it's empty");
if ((pack != null) && (!pack.isEmpty())) {
name = pack + "." + name;
}
name = pack + "." + name;
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...
} else if ((pack != null) && (name.startsWith(pack))) {
type = Intent.IntentType.INTERNAL_TARGET; // TODO Ehhh...