File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,6 @@ ScrollHandle getScrollHandle() {
258
258
public PDFView (Context context , AttributeSet set ) {
259
259
super (context , set );
260
260
261
- renderingHandlerThread = new HandlerThread ("PDF renderer" );
262
-
263
261
if (isInEditMode ()) {
264
262
return ;
265
263
}
@@ -476,6 +474,12 @@ public void computeScroll() {
476
474
animationManager .computeFling ();
477
475
}
478
476
477
+ @ Override
478
+ protected void onAttachedToWindow () {
479
+ super .onAttachedToWindow ();
480
+ renderingHandlerThread = new HandlerThread ("PDF renderer" );
481
+ }
482
+
479
483
@ Override
480
484
protected void onDetachedFromWindow () {
481
485
recycle ();
Original file line number Diff line number Diff line change 8
8
android:label=" @string/app_name"
9
9
android:theme=" @style/Theme.AppCompat.Light" >
10
10
<activity
11
- android:name=" PDFViewActivity "
11
+ android:name=" PDFViewActivity_ "
12
12
android:label=" @string/app_name" >
13
13
<intent-filter >
14
14
<action android : name =" android.intent.action.MAIN" />
You can’t perform that action at this time.
0 commit comments