Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
58365a89
Commit
58365a89
authored
Apr 24, 2019
by
Ahmed Ashour
Committed by
skylot
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(gui): remove tree children expansions as well (PR #630)
parent
172f7f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
JadxProject.java
jadx-gui/src/main/java/jadx/gui/settings/JadxProject.java
+14
-1
No files found.
jadx-gui/src/main/java/jadx/gui/settings/JadxProject.java
View file @
58365a89
...
@@ -78,13 +78,26 @@ public class JadxProject {
...
@@ -78,13 +78,26 @@ public class JadxProject {
public
void
removeTreeExpansion
(
String
[]
expansion
)
{
public
void
removeTreeExpansion
(
String
[]
expansion
)
{
for
(
Iterator
<
String
[]>
it
=
treeExpansions
.
iterator
();
it
.
hasNext
();
)
{
for
(
Iterator
<
String
[]>
it
=
treeExpansions
.
iterator
();
it
.
hasNext
();
)
{
if
(
Arrays
.
equals
(
it
.
next
(),
expansion
))
{
if
(
isParentOfExpansion
(
expansion
,
it
.
next
()
))
{
it
.
remove
();
it
.
remove
();
}
}
}
}
changed
();
changed
();
}
}
private
boolean
isParentOfExpansion
(
String
[]
parent
,
String
[]
child
)
{
if
(
Arrays
.
equals
(
parent
,
child
))
{
return
true
;
}
for
(
int
i
=
child
.
length
-
parent
.
length
;
i
>
0
;
i
--)
{
String
[]
arr
=
Arrays
.
copyOfRange
(
child
,
i
,
child
.
length
);
if
(
Arrays
.
equals
(
parent
,
arr
))
{
return
true
;
}
}
return
false
;
}
private
void
changed
()
{
private
void
changed
()
{
if
(
settings
.
isAutoSaveProject
())
{
if
(
settings
.
isAutoSaveProject
())
{
save
();
save
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment