From 3db20776595b7cf616c2a36bd549e59b74acb339 Mon Sep 17 00:00:00 2001 From: Juraj Fulir Date: Thu, 28 Sep 2017 13:38:02 +0200 Subject: [PATCH] Add FakeR javadoc (to describe its purpose) --- .../java/com/phonegap/plugins/blinkid/FakeR.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/BlinkMoto/src/android/java/com/phonegap/plugins/blinkid/FakeR.java b/BlinkMoto/src/android/java/com/phonegap/plugins/blinkid/FakeR.java index c12c954..bf11723 100644 --- a/BlinkMoto/src/android/java/com/phonegap/plugins/blinkid/FakeR.java +++ b/BlinkMoto/src/android/java/com/phonegap/plugins/blinkid/FakeR.java @@ -4,12 +4,8 @@ import android.content.Context; /** - * R replacement for PhoneGap Build. - *

- * ([^.\w])R\.(\w+)\.(\w+) - * $1fakeR("$2", "$3") - * - * @author Maciej Nux Jaros + * Replacement for android resources R in PhoneGap plugins.
+ * Used for resources added with a plugin. Since the application has its own R the plugin must fetch its resources through the activity's context. */ public class FakeR { private Context context; @@ -55,4 +51,4 @@ public int getId(String key) { public String getString(String key) { return context.getResources().getString(getIdFrom("string", key)); } -} \ No newline at end of file +}