修复日志视图再打开第二个日志后,第一个日志回显时停顿问题。

This commit is contained in:
ZhanGSKen 2025-03-31 12:09:46 +08:00
parent 0d540c422e
commit bec4041b87
2 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -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 {
@ -22,6 +23,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();
args.putInt(ARG_PAGE, page);
@ -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();
}
}