This commit is contained in:
hyb1996 2017-10-28 14:48:53 +08:00
parent 1f7be092d8
commit d830e13031
5 changed files with 10 additions and 11 deletions

View File

@ -162,9 +162,7 @@ public class LayoutHierarchyView extends MultiLevelListView {
Stack<NodeInfo> parents = new Stack<>();
searchNodeParents(selectedNode, mRootNode, parents);
mClickedNodeInfo = parents.peek();
for (NodeInfo nodeInfo : parents) {
mInitiallyExpandedNodes.add(nodeInfo);
}
mInitiallyExpandedNodes.addAll(parents);
mAdapter.reloadData();
}
@ -225,7 +223,7 @@ public class LayoutHierarchyView extends MultiLevelListView {
NodeInfo nodeInfo = (NodeInfo) object;
ViewHolder viewHolder;
if (convertView == null) {
convertView = LayoutInflater.from(getContext()).inflate(R.layout.layout_hierarchy_view_item, LayoutHierarchyView.this, false);
convertView = LayoutInflater.from(getContext()).inflate(R.layout.layout_hierarchy_view_item, null);
viewHolder = new ViewHolder(convertView);
convertView.setTag(viewHolder);
} else {

View File

@ -27,6 +27,7 @@ repositories {
flatDir {
dirs 'libs'
}
google()
}
dependencies {
@ -41,8 +42,8 @@ dependencies {
compile('com.afollestad.material-dialogs:core:0.9.2.3', {
exclude group: 'com.android.support'
})
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.4.0'
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.github.hyb1996:EnhancedFloaty:0.17'
// Terminal emulator
compile(name: 'libtermexec-release', ext: 'aar')

View File

@ -44,9 +44,7 @@ public class LoopedBasedJavaScriptExecution extends RunnableScriptExecution {
return true;
}
});
javaScriptEngine.execute(
getSource());
javaScriptEngine.execute(getSource());
return null;
}

View File

@ -25,6 +25,7 @@ repositories {
flatDir {
dirs 'libs'
}
google()
}
dependencies {
@ -32,6 +33,6 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:appcompat-v7:25.4.0'
compile project(path: ':common')
}

View File

@ -36,6 +36,7 @@ repositories {
flatDir {
dirs 'libs'
}
google()
}
dependencies {
@ -43,7 +44,7 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:appcompat-v7:25.4.0'
testCompile 'junit:junit:4.12'
compile project(':automator')
compile project(':common')