File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
library/src/main/java/me/imid/swipebacklayout/lib/app Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ protected void onPostCreate(Bundle savedInstanceState) {
25
25
@ Override
26
26
public View findViewById (int id ) {
27
27
View v = super .findViewById (id );
28
- if (v != null )
29
- return v ;
30
- return mHelper . findViewById ( id ) ;
28
+ if (v == null && mHelper != null )
29
+ return mHelper . findViewById ( id ) ;
30
+ return v ;
31
31
}
32
32
33
33
@ Override
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ protected void onPostCreate(Bundle savedInstanceState) {
25
25
@ Override
26
26
public View findViewById (int id ) {
27
27
View v = super .findViewById (id );
28
- if (v != null )
29
- return v ;
30
- return mHelper . findViewById ( id ) ;
28
+ if (v == null && mHelper != null )
29
+ return mHelper . findViewById ( id ) ;
30
+ return v ;
31
31
}
32
32
33
33
@ Override
You can’t perform that action at this time.
0 commit comments