|
|
@ -156,7 +156,6 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|
|
|
static final String ACTION_MANAGE_LOCAL_CONTACTS = BuildConfig.APPLICATION_ID + ".MANAGE_LOCAL_CONTACTS";
|
|
|
|
static final String ACTION_MANAGE_LOCAL_CONTACTS = BuildConfig.APPLICATION_ID + ".MANAGE_LOCAL_CONTACTS";
|
|
|
|
static final String ACTION_MANAGE_CERTIFICATES = BuildConfig.APPLICATION_ID + ".MANAGE_CERTIFICATES";
|
|
|
|
static final String ACTION_MANAGE_CERTIFICATES = BuildConfig.APPLICATION_ID + ".MANAGE_CERTIFICATES";
|
|
|
|
static final String ACTION_IMPORT_CERTIFICATE = BuildConfig.APPLICATION_ID + ".IMPORT_CERTIFICATE";
|
|
|
|
static final String ACTION_IMPORT_CERTIFICATE = BuildConfig.APPLICATION_ID + ".IMPORT_CERTIFICATE";
|
|
|
|
static final String ACTION_SETUP_ADVANCED = BuildConfig.APPLICATION_ID + ".SETUP_ADVANCED";
|
|
|
|
|
|
|
|
static final String ACTION_SETUP_MORE = BuildConfig.APPLICATION_ID + ".SETUP_MORE";
|
|
|
|
static final String ACTION_SETUP_MORE = BuildConfig.APPLICATION_ID + ".SETUP_MORE";
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -389,7 +388,6 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|
|
|
iff.addAction(ACTION_MANAGE_LOCAL_CONTACTS);
|
|
|
|
iff.addAction(ACTION_MANAGE_LOCAL_CONTACTS);
|
|
|
|
iff.addAction(ACTION_MANAGE_CERTIFICATES);
|
|
|
|
iff.addAction(ACTION_MANAGE_CERTIFICATES);
|
|
|
|
iff.addAction(ACTION_IMPORT_CERTIFICATE);
|
|
|
|
iff.addAction(ACTION_IMPORT_CERTIFICATE);
|
|
|
|
iff.addAction(ACTION_SETUP_ADVANCED);
|
|
|
|
|
|
|
|
iff.addAction(ACTION_SETUP_MORE);
|
|
|
|
iff.addAction(ACTION_SETUP_MORE);
|
|
|
|
lbm.registerReceiver(receiver, iff);
|
|
|
|
lbm.registerReceiver(receiver, iff);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1618,14 +1616,6 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|
|
|
startActivityForResult(Helper.getChooser(this, open), REQUEST_IMPORT_CERTIFICATE);
|
|
|
|
startActivityForResult(Helper.getChooser(this, open), REQUEST_IMPORT_CERTIFICATE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onSetupAdvanced(Intent intent) {
|
|
|
|
|
|
|
|
View dview = LayoutInflater.from(this).inflate(R.layout.dialog_advanced, null);
|
|
|
|
|
|
|
|
new AlertDialog.Builder(this)
|
|
|
|
|
|
|
|
.setView(dview)
|
|
|
|
|
|
|
|
.setPositiveButton(android.R.string.ok, null)
|
|
|
|
|
|
|
|
.show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void onSetupMore(Intent intent) {
|
|
|
|
private void onSetupMore(Intent intent) {
|
|
|
|
drawerLayout.openDrawer(GravityCompat.START);
|
|
|
|
drawerLayout.openDrawer(GravityCompat.START);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1796,8 +1786,6 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|
|
|
onManageCertificates(intent);
|
|
|
|
onManageCertificates(intent);
|
|
|
|
else if (ACTION_IMPORT_CERTIFICATE.equals(action))
|
|
|
|
else if (ACTION_IMPORT_CERTIFICATE.equals(action))
|
|
|
|
onImportCertificate(intent);
|
|
|
|
onImportCertificate(intent);
|
|
|
|
else if (ACTION_SETUP_ADVANCED.equals(action))
|
|
|
|
|
|
|
|
onSetupAdvanced(intent);
|
|
|
|
|
|
|
|
else if (ACTION_SETUP_MORE.equals(action))
|
|
|
|
else if (ACTION_SETUP_MORE.equals(action))
|
|
|
|
onSetupMore(intent);
|
|
|
|
onSetupMore(intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|