Revert "Remove unused ApplicationContext fetch"

This commit is contained in:
Satyajit Sahoo 2016-01-20 07:16:33 +05:30
parent 165e40f22d
commit 4bbb0f4c16
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public class ClipboardModule extends ReactContextBaseJavaModule {
@SuppressLint("DeprecatedMethod")
@ReactMethod
public void setString(String text) {
ReactApplicationContext reactContext = getReactApplicationContext();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
ClipData clipdata = ClipData.newPlainText(null, text);
ClipboardManager clipboard = getClipboardService();