|
@@ -155,7 +155,7 @@ public class MainActivity extends FragmentActivity {
|
|
|
if (((ToggleButton) view).isChecked()) {
|
|
|
if (isParanoid()) {
|
|
|
String[] protocols = getResources().getStringArray(R.array.protocols);
|
|
|
- for (String protocol: protocols) {
|
|
|
+ for (String protocol : protocols) {
|
|
|
mService.startListener(protocol);
|
|
|
}
|
|
|
} else {
|
|
@@ -205,7 +205,7 @@ public class MainActivity extends FragmentActivity {
|
|
|
* View elements which triggers the method call.
|
|
|
*/
|
|
|
public void showLog(View view) {
|
|
|
- //startActivity(new Intent(this, ViewLog.class));
|
|
|
+ // startActivity(new Intent(this, ViewLog.class));
|
|
|
}
|
|
|
|
|
|
public void startPlayGround(View view) {
|
|
@@ -570,6 +570,10 @@ public class MainActivity extends FragmentActivity {
|
|
|
setContentView(R.layout.activity_main);
|
|
|
connectionInfo = getSharedPreferences(getString(R.string.connection_info), Context.MODE_PRIVATE);
|
|
|
|
|
|
+ // Ensure DB creation happens at right place, until old dbOpenHelper
|
|
|
+ // disappears
|
|
|
+ HostageDBOpenHelper dbOpenHelper = new HostageDBOpenHelper(getApplicationContext());
|
|
|
+
|
|
|
// Create dynamic view elements
|
|
|
initViewAnimator();
|
|
|
initListView();
|