fixes github #59 for crash on app list UI

This commit is contained in:
Nathan Freitas 2016-11-03 10:36:39 -04:00
parent e9ece471b7
commit 1ae0c71ac7
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@ public class AppManager extends AppCompatActivity implements OnCheckedChangeList
app.setTorified(!app.isTorified()); app.setTorified(!app.isTorified());
} }
box.setChecked(app.isTorified()); if (box != null)
box.setChecked(app.isTorified());
} }
saveAppSettings(context); saveAppSettings(context);
loadApps(prefs); loadApps(prefs);