diff --git a/replugin-plugin-gradle/src/main/groovy/com/qihoo360/replugin/gradle/plugin/injector/identifier/GetIdentifierExprEditor.groovy b/replugin-plugin-gradle/src/main/groovy/com/qihoo360/replugin/gradle/plugin/injector/identifier/GetIdentifierExprEditor.groovy index 4697c4f7..79319561 100644 --- a/replugin-plugin-gradle/src/main/groovy/com/qihoo360/replugin/gradle/plugin/injector/identifier/GetIdentifierExprEditor.groovy +++ b/replugin-plugin-gradle/src/main/groovy/com/qihoo360/replugin/gradle/plugin/injector/identifier/GetIdentifierExprEditor.groovy @@ -36,9 +36,12 @@ public class GetIdentifierExprEditor extends ExprEditor { if (clsName.equalsIgnoreCase('android.content.res.Resources')) { if (methodName == 'getIdentifier') { - m.replace('{ $3 = \"' + CommonData.appPackage + '\"; ' + + m.replace('{ $3 = "android".equalsIgnoreCase($3)? $3 : \"' + CommonData.appPackage + '\"; ' + '$_ = $proceed($$);' + ' }') +// m.replace('{ $3 = \"' + CommonData.appPackage + '\"; ' + +// '$_ = $proceed($$);' + +// ' }') println " GetIdentifierCall => ${filePath} ${methodName}():${m.lineNumber}" } }