瀏覽代碼

Merge branch 'develop' of https://github.com/swict/LifeplusAndroid into develop

hyodong.min 6 年之前
父節點
當前提交
9323463289
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/notification/NotiView.java

+ 6 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/notification/NotiView.java

@@ -99,11 +99,15 @@ public class NotiView {
     if (this.index == position) {
       if (NoticeBean.CATEGORY_NOTICE.equals(NoticeBean.getCategoryName(this.index))) {
         // 공지 탭 보여질 때 첫 번째 아이템 확장
-        notiListAdapter.expand(0, true);
+        if(notiListAdapter != null) {
+          notiListAdapter.expand(0, true);
+        }
       }
       else if (NoticeBean.CATEGORY_ALL.equals(NoticeBean.getCategoryName(this.index))) {
         // 전체 탭 모든 아이탬 축소
-        notiListAdapter.collapseDataAll();
+        if(notiListAdapter != null) {
+          notiListAdapter.collapseDataAll();
+        }
       }
     }
     else {