[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] fix issue with select apps
commit b2de89b2cb4de0d8fe7b5fc859ae4c4429f2cc6a
Author: n8fr8 <nathan@xxxxxxxxxxx>
Date: Wed Nov 1 09:51:34 2017 -0400
fix issue with select apps
---
.../main/java/org/torproject/android/ui/AppManagerActivity.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java b/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java
index 0f8e2f06..30e52ebc 100644
--- a/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java
+++ b/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java
@@ -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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits