Skip to content

Commit

Permalink
Replace name.
Browse files Browse the repository at this point in the history
  • Loading branch information
rome753 committed Sep 19, 2019
1 parent debb68f commit a4cc38a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public void handleMessage(Message msg) {
if(info == null) {
return;
}
info.lifecycle = trimLifecycle(info.lifecycle);
if(info.fragments != null) {
FragmentTaskView fragmentTaskView = activityTaskView.findFragmentTaskView(info.activity);
if(fragmentTaskView != null) {
Expand All @@ -123,12 +122,6 @@ public void handleMessage(Message msg) {
}
}

private String trimLifecycle(String lifecycle) {
lifecycle = lifecycle.replace("onFragment", "");
lifecycle = lifecycle.replace("onActivity", "");
lifecycle = lifecycle.replace("SaveInstanceState", "SIS");
return lifecycle;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public void setInfoText(String s, String lifecycle) {
String tag = s.substring(i1);
setTag(tag);

lifecycle = lifecycle.replace("onFragment", "");
lifecycle = lifecycle.replace("onActivity", "");
lifecycle = lifecycle.replace("SaveInstanceState", "SIS");
s = s.replace("Activity", "A…");
s = s.replace("Fragment", "F…");
s = s.replace(tag, " ") + lifecycle;
Expand Down

0 comments on commit a4cc38a

Please sign in to comment.