FileDocCategorySizeDatePackage
ResourceRewriter.javaAPI DocAndroid 5.1 API1518Thu Mar 12 22:22:56 GMT 2015com.android.webview.chromium

ResourceRewriter

public class ResourceRewriter extends Object
Helper class used to fix up resource ids. This is mostly a copy of the code in frameworks/base/core/java/android/app/LoadedApk.java. TODO: Remove if a cleaner mechanism is provided (either public API or AAPT is changed to generate this code).

Fields Summary
Constructors Summary
Methods Summary
public static voidrewriteRValues(int packageId)
Rewrite the R 'constants' for the WebView library apk.

        // TODO: We should use jarjar to remove the redundant R classes here, but due
        // to a bug in jarjar it's not possible to rename classes with '$' in their name.
        // See b/15684775.
        com.android.webview.chromium.R.onResourcesLoaded(packageId);
        org.chromium.ui.R.onResourcesLoaded(packageId);
        org.chromium.content.R.onResourcesLoaded(packageId);