Skip to content

Commit 53ff613

Browse files
cortinicofacebook-github-bot
authored andcommitted

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,15 +2169,6 @@ public abstract interface class com/facebook/react/devsupport/ReactInstanceDevHe
21692169
public abstract fun toggleElementInspector ()V
21702170
}
21712171

2172-
public final class com/facebook/react/devsupport/RedBoxContentView : android/widget/LinearLayout, android/widget/AdapterView$OnItemClickListener {
2173-
public fun <init> (Landroid/content/Context;Lcom/facebook/react/devsupport/interfaces/DevSupportManager;Lcom/facebook/react/devsupport/interfaces/RedBoxHandler;)V
2174-
public final fun init ()V
2175-
public fun onItemClick (Landroid/widget/AdapterView;Landroid/view/View;IJ)V
2176-
public final fun refreshContentView ()V
2177-
public final fun resetReporting ()V
2178-
public final fun setExceptionDetails (Ljava/lang/String;[Lcom/facebook/react/devsupport/interfaces/StackFrame;)V
2179-
}
2180-
21812172
public class com/facebook/react/devsupport/ReleaseDevSupportManager : com/facebook/react/devsupport/interfaces/DevSupportManager {
21822173
public fun <init> ()V
21832174
public fun addCustomDevOption (Ljava/lang/String;Lcom/facebook/react/devsupport/interfaces/DevOptionHandler;)V

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxContentView.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import org.json.JSONObject
4545

4646
/** Dialog for displaying JS errors in an eye-catching form (red box). */
4747
@SuppressLint("ViewConstructor")
48-
public class RedBoxContentView(
48+
internal class RedBoxContentView(
4949
context: Context?,
5050
private val devSupportManager: DevSupportManager,
5151
private val redBoxHandler: RedBoxHandler?,
@@ -190,7 +190,7 @@ public class RedBoxContentView(
190190
}
191191
}
192192

193-
public fun init() {
193+
fun init() {
194194
LayoutInflater.from(context).inflate(R.layout.redbox_view, this)
195195

196196
stackView =
@@ -220,12 +220,12 @@ public class RedBoxContentView(
220220
}
221221
}
222222

223-
public fun setExceptionDetails(title: String, stack: Array<StackFrame>) {
223+
fun setExceptionDetails(title: String, stack: Array<StackFrame>) {
224224
stackView.setAdapter(StackAdapter(title, stack))
225225
}
226226

227227
/** Show the report button, hide the report textview and the loading indicator. */
228-
public fun resetReporting() {
228+
fun resetReporting() {
229229
if (redBoxHandler?.isReportEnabled() == false) {
230230
return
231231
}
@@ -244,7 +244,7 @@ public class RedBoxContentView(
244244
}
245245

246246
/** Refresh the content view with latest errors from dev support manager */
247-
public fun refreshContentView() {
247+
fun refreshContentView() {
248248
val message: String? = devSupportManager.lastErrorTitle
249249
val stack: Array<StackFrame> = devSupportManager.lastErrorStack ?: emptyArray()
250250
val errorType: ErrorType = checkNotNull(devSupportManager.lastErrorType)

0 commit comments

Comments
 (0)