diff --git a/android/sample/src/main/AndroidManifest.xml b/android/sample/src/main/AndroidManifest.xml index 5bb61931a..42fe3ca7b 100644 --- a/android/sample/src/main/AndroidManifest.xml +++ b/android/sample/src/main/AndroidManifest.xml @@ -48,7 +48,8 @@ android:theme="@style/Theme.MeasureAndroid" /> + android:exported="true" + android:theme="@style/Theme.MeasureAndroid"> diff --git a/android/sample/src/main/java/sh/measure/sample/ExceptionDemoActivity.kt b/android/sample/src/main/java/sh/measure/sample/ExceptionDemoActivity.kt index 044a52cef..93d8456d0 100644 --- a/android/sample/src/main/java/sh/measure/sample/ExceptionDemoActivity.kt +++ b/android/sample/src/main/java/sh/measure/sample/ExceptionDemoActivity.kt @@ -1,13 +1,18 @@ package sh.measure.sample import android.content.Intent +import android.os.Build import android.os.Bundle import android.os.Handler import android.os.Looper import android.util.Log -import android.widget.Button +import android.widget.ScrollView import androidx.appcompat.app.AppCompatActivity +import androidx.core.view.ViewCompat +import androidx.core.view.WindowInsetsCompat +import androidx.core.view.updatePadding import com.google.android.material.switchmaterial.SwitchMaterial +import com.google.android.material.textview.MaterialTextView import sh.measure.android.Measure import sh.measure.android.tracing.SpanStatus import sh.measure.sample.fragments.AndroidXFragmentNavigationActivity @@ -25,58 +30,59 @@ class ExceptionDemoActivity : AppCompatActivity() { super.onCreate(savedInstanceState) val span = Measure.startSpan("activity.onCreate") setContentView(R.layout.activity_exception_demo) - findViewById