Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weikaiyun committed Sep 16, 2020
1 parent fdb2eb3 commit fe098bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.weikaiyun.fragmentation.debug;

import android.app.Dialog;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
Expand Down Expand Up @@ -154,8 +155,8 @@ public void onClick(View v) {
}
}

private void handleExpandView(List<DebugFragmentRecord> childFragmentRecord, int finalChilHierarchy, TextView childTvItem) {
DebugHierarchyViewContainer.this.setView(childFragmentRecord, finalChilHierarchy, childTvItem);
private void handleExpandView(List<DebugFragmentRecord> childFragmentRecord, int finalChildHierarchy, TextView childTvItem) {
DebugHierarchyViewContainer.this.setView(childFragmentRecord, finalChildHierarchy, childTvItem);
childTvItem.setCompoundDrawablesWithIntrinsicBounds(R.drawable.fragmentation_ic_expandable, 0, 0, 0);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ private List<DebugFragmentRecord> getChildFragmentRecords(Fragment parentFragmen
private void addDebugFragmentRecord(List<DebugFragmentRecord> fragmentRecords, Fragment fragment) {
if (fragment != null) {
CharSequence name = fragment.getClass().getSimpleName();
name = span(name, " *");

if (fragment instanceof ISupportFragment && ((ISupportFragment)fragment).getSupportDelegate().getVisibleDelegate().isVisible()) {
name = span(name, " ☀");
Expand Down
2 changes: 1 addition & 1 deletion fragmentation/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources>
<string name="fragmentation_stack_view">Stack</string>
<string name="fragmentation_stack_help">*: Active Fragment\n☀: Visible</string>
<string name="fragmentation_stack_help">☀: Visible</string>
</resources>

0 comments on commit fe098bd

Please sign in to comment.