Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ANON-Public
orbot
Commits
b2de89b2
Commit
b2de89b2
authored
Nov 01, 2017
by
n8fr8
Browse files
fix issue with select apps
parent
5d218adc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/torproject/android/ui/AppManagerActivity.java
View file @
b2de89b2
...
...
@@ -83,7 +83,7 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList
protected
void
onPreExecute
()
{
// Pre Code
dialog
=
new
ProgressDialog
(
AppManagerActivity
.
this
);
dialog
=
new
ProgressDialog
(
AppManagerActivity
.
this
,
android
.
support
.
v4
.
app
.
DialogFragment
.
STYLE_NO_TITLE
);
dialog
.
show
();
}
protected
Void
doInBackground
(
Void
...
unused
)
{
...
...
@@ -125,7 +125,7 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList
if
(
convertView
==
null
)
convertView
=
inflater
.
inflate
(
R
.
layout
.
layout_apps_item
,
parent
,
false
);
else
entry
=
(
ListEntry
)
convertView
.
getTag
();
;
entry
=
(
ListEntry
)
convertView
.
getTag
();
if
(
entry
==
null
)
{
// Inflate a new view
...
...
@@ -134,8 +134,6 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList
entry
.
box
=
(
CheckBox
)
convertView
.
findViewById
(
R
.
id
.
itemcheck
);
entry
.
text
=
(
TextView
)
convertView
.
findViewById
(
R
.
id
.
itemtext
);
convertView
.
setTag
(
entry
);
}
final
TorifiedApp
app
=
mApps
.
get
(
position
);
...
...
@@ -162,6 +160,7 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList
if
(
entry
.
box
!=
null
)
{
entry
.
box
.
setOnClickListener
(
AppManagerActivity
.
this
);
entry
.
box
.
setChecked
(
app
.
isTorified
());
entry
.
box
.
setTag
(
app
);
}
return
convertView
;
...
...
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