Commit b9cce6b6 authored by Craig Earley's avatar Craig Earley
Browse files

removes Holo theme from AlertDialogs

parent f0268e26
......@@ -372,7 +372,7 @@ public class BenchSampleActivity extends Activity {
final EditText name = (EditText) dialog.findViewById(R.id.pictureName);
if (resultCode != Activity.RESULT_CANCELED) {
Dialog d = new AlertDialog.Builder(BenchSampleActivity.this, AlertDialog.THEME_HOLO_LIGHT)
Dialog d = new AlertDialog.Builder(BenchSampleActivity.this)
.setTitle("Picture Name")
.setView(dialog)
.setNegativeButton("Discard Picture", null)
......
......@@ -275,7 +275,7 @@ public class DatabaseActionsActivity extends Activity {
}
public void verify(final View view){
AlertDialog.Builder builder = new AlertDialog.Builder(DatabaseActionsActivity.this, AlertDialog.THEME_HOLO_LIGHT);
AlertDialog.Builder builder = new AlertDialog.Builder(DatabaseActionsActivity.this);
switch(view.getId()){
case R.id.setupDbButton:
builder.setMessage("Are you sure that you want to setup your local database?");
......@@ -411,7 +411,7 @@ public class DatabaseActionsActivity extends Activity {
DatabaseActionsActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
Dialog d = new AlertDialog.Builder(DatabaseActionsActivity.this, AlertDialog.THEME_HOLO_LIGHT)
Dialog d = new AlertDialog.Builder(DatabaseActionsActivity.this)
.setTitle("Here are the trips I've discovered. Select your trip.")
.setNegativeButton("No trip!", null)
.setItems(tripArray, new DialogInterface.OnClickListener() {
......
......@@ -114,7 +114,7 @@ public class GoogleDriveFileBrowser extends GoogleDriveConnect {
};
private void askForName(View v){
AlertDialog.Builder builder = new AlertDialog.Builder(GoogleDriveFileBrowser.this, AlertDialog.THEME_HOLO_LIGHT);
AlertDialog.Builder builder = new AlertDialog.Builder(GoogleDriveFileBrowser.this);
final EditText name = new EditText(this);
// name.setTextColor(getResources().getColor(R.color.text_green));
builder.setView(name);
......
......@@ -112,7 +112,7 @@ public class MainScreenActivity extends Activity {
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
tripName = settings.getString("trip", "");
if (tripName.equals("")) {
Dialog d = new AlertDialog.Builder(MainScreenActivity.this, AlertDialog.THEME_HOLO_LIGHT)
Dialog d = new AlertDialog.Builder(MainScreenActivity.this)
.setTitle("No Remote Database Connection")
.setMessage("You haven't setup your database using a remote database. You won't be able " +
"to record any data, are you sure you want to continue?")
......
......@@ -109,7 +109,7 @@ public class MyDocumentsActivity extends Activity {
public void signInToHost() {
AlertDialog.Builder builder = new AlertDialog.Builder(MyDocumentsActivity.this, AlertDialog.THEME_HOLO_LIGHT);
AlertDialog.Builder builder = new AlertDialog.Builder(MyDocumentsActivity.this);
LayoutInflater layoutInflater = this.getLayoutInflater();
final View dialog = layoutInflater.inflate(R.layout.alert_dialog_sigin, null);
final EditText host = (EditText) dialog.findViewById(R.id.fileHost);
......@@ -202,7 +202,7 @@ public class MyDocumentsActivity extends Activity {
MyDocumentsActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
AlertDialog.Builder builder = new AlertDialog.Builder(MyDocumentsActivity.this, AlertDialog.THEME_HOLO_LIGHT);
AlertDialog.Builder builder = new AlertDialog.Builder(MyDocumentsActivity.this);
final String[] fileArray = dirList.toArray(new String[0]);
builder.setTitle("Select files to download");
......
......@@ -233,7 +233,7 @@ public class SensorSampleActivity extends Activity {
t.setGravity(Gravity.CENTER, 0, 0);
t.show();
} else if (!db.addSpot(tripName, site, sector, spot)) {
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this, AlertDialog.THEME_HOLO_LIGHT)
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this)
.setTitle("Are you sure?")
.setMessage("There's already a spot with this trip, site, and sector. Make sure you are at the same geolocation that is " +
"associated with this spot.")
......@@ -322,7 +322,7 @@ public class SensorSampleActivity extends Activity {
final EditText name = (EditText) dialog.findViewById(R.id.pictureName);
if (resultCode != Activity.RESULT_CANCELED) {
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this, AlertDialog.THEME_HOLO_LIGHT)
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this)
.setTitle("Picture Name")
.setView(dialog)
.setNegativeButton("Discard Picture", null)
......@@ -612,7 +612,7 @@ public class SensorSampleActivity extends Activity {
final View dialog = layoutInflater.inflate(R.layout.alert_sample_notes, null);
final EditText notes = (EditText) dialog.findViewById(R.id.sampleNotes);
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this, AlertDialog.THEME_HOLO_LIGHT)
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this)
.setNegativeButton("Cancel", null)
.setTitle("Add Sample Notes")
.setView(dialog)
......@@ -735,7 +735,7 @@ public class SensorSampleActivity extends Activity {
}
});
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this, AlertDialog.THEME_HOLO_LIGHT)
Dialog d = new AlertDialog.Builder(SensorSampleActivity.this)
.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment