Makes spring variable dynamic resources so that they can be changed via plugin

Bug: 147302669
Change-Id: Ia4e74ff46a4d8338a56ea75ed826b69102c42d93
This commit is contained in:
Jon Miranda
2020-03-02 13:18:55 -08:00
parent acaf0749b3
commit 7edcd7803f
10 changed files with 103 additions and 26 deletions
@@ -68,6 +68,11 @@ public class DynamicResource implements ResourceProvider, PluginListener<Resourc
return mContext.getResources().getColor(resId, null);
}
@Override
public float getFloat(@DimenRes int resId) {
return mContext.getResources().getFloat(resId);
}
@Override
public void onPluginConnected(ResourceProvider plugin, Context context) {
mPlugin = plugin;