mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 01:37:34 +01:00
[skip] code style updates
This commit is contained in:
parent
5dfa79934c
commit
c91ef3822e
@ -1,4 +1,4 @@
|
|||||||
package brut.androlib; /**
|
/**
|
||||||
* Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
|
* Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -13,6 +13,7 @@ package brut.androlib; /**
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
package brut.androlib;
|
||||||
|
|
||||||
public class ApkOptions {
|
public class ApkOptions {
|
||||||
public boolean forceBuildAll = false;
|
public boolean forceBuildAll = false;
|
||||||
|
@ -45,15 +45,12 @@ public class ResReferenceValue extends ResIntValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ResResSpec spec = getReferent();
|
ResResSpec spec = getReferent();
|
||||||
boolean newId = spec.hasDefaultResource()
|
boolean newId = spec.hasDefaultResource() && spec.getDefaultResource().getValue() instanceof ResIdValue;
|
||||||
&& spec.getDefaultResource().getValue() instanceof ResIdValue;
|
|
||||||
|
|
||||||
// generate the beginning to fix @android
|
// generate the beginning to fix @android
|
||||||
String mStart = (mTheme ? '?' : '@') + (newId ? "+" : "");
|
String mStart = (mTheme ? '?' : '@') + (newId ? "+" : "");
|
||||||
|
|
||||||
return mStart
|
return mStart + spec.getFullName(mPackage, mTheme && spec.getType().getName().equals("attr"));
|
||||||
+ spec.getFullName(mPackage, mTheme
|
|
||||||
&& spec.getType().getName().equals("attr"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResResSpec getReferent() throws AndrolibException {
|
public ResResSpec getReferent() throws AndrolibException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user