Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
快速滑动必现 #3
  • Loading branch information
xuminjie committed Mar 5, 2017
1 parent 52a309b commit c8c9055
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand Down Expand Up @@ -57,6 +58,10 @@ protected void initData() {
handler.postDelayed(new Runnable() {
@Override
public void run() {
if (!isPrepared()) {
Log.w("initData", "目标已被回收");
return;
}
if (!TextUtils.isEmpty(info.getShowNumber())) {
textView.setVisibility(View.VISIBLE);
textView.setText(info.getTitle() + "\n" + getString(R.string.section_format, info.getShowNumber
Expand Down

0 comments on commit c8c9055

Please sign in to comment.