修复日志视图再打开第二个日志后,第一个日志回显时停顿问题。
This commit is contained in:
		| @@ -1,8 +1,8 @@ | ||||
| #Created by .winboll/winboll_app_build.gradle | ||||
| #Mon Mar 31 04:04:09 GMT 2025 | ||||
| #Mon Mar 31 04:07:30 GMT 2025 | ||||
| stageCount=1 | ||||
| libraryProject= | ||||
| baseVersion=15.2 | ||||
| publishVersion=15.2.0 | ||||
| buildCount=2 | ||||
| buildCount=4 | ||||
| baseBetaVersion=15.2.1 | ||||
|   | ||||
| @@ -14,6 +14,7 @@ import androidx.annotation.Nullable; | ||||
| import androidx.fragment.app.Fragment; | ||||
| import cc.winboll.studio.contacts.R; | ||||
| import cc.winboll.studio.libappbase.LogView; | ||||
| import com.hjq.toast.ToastUtils; | ||||
|  | ||||
| public class LogFragment extends Fragment { | ||||
|  | ||||
| @@ -21,6 +22,8 @@ public class LogFragment extends Fragment { | ||||
|  | ||||
|     private static final String ARG_PAGE = "ARG_PAGE"; | ||||
|     private int mPage; | ||||
|      | ||||
|     LogView mLogView; | ||||
|  | ||||
|     public static LogFragment newInstance(int page) { | ||||
|         Bundle args = new Bundle(); | ||||
| @@ -43,8 +46,17 @@ public class LogFragment extends Fragment { | ||||
|     public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, | ||||
|                              @Nullable Bundle savedInstanceState) { | ||||
|         View view = inflater.inflate(R.layout.fragment_log, container, false); | ||||
|         LogView logView = view.findViewById(R.id.logview); | ||||
|         logView.start(); | ||||
|         mLogView = view.findViewById(R.id.logview); | ||||
|         mLogView.start(); | ||||
|         return view; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void onResume() { | ||||
|         super.onResume(); | ||||
|         //ToastUtils.show("onResume"); | ||||
|         mLogView.start(); | ||||
|     } | ||||
|      | ||||
|      | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ZhanGSKen
					ZhanGSKen