Index: content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java b/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java |
index 58ff8dba74958df1d2dde2ecdde994434c45bcb2..389b4fd9adb75e30af47ebdd2fa92f0da95e4d03 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java |
@@ -18,9 +18,9 @@ import android.text.format.Time; |
import android.widget.DatePicker; |
import android.widget.TimePicker; |
-import org.chromium.content.app.AppResource; |
import org.chromium.content.browser.DateTimePickerDialog.OnDateTimeSetListener; |
import org.chromium.content.browser.MonthPickerDialog.OnMonthSetListener; |
+import org.chromium.content.R; |
import java.text.ParseException; |
import java.text.SimpleDateFormat; |
@@ -109,11 +109,8 @@ class InputDialogContainer { |
time.year, time.month); |
} |
- assert AppResource.STRING_DATE_PICKER_DIALOG_SET != 0; |
- assert AppResource.STRING_DATE_PICKER_DIALOG_CLEAR != 0; |
- |
mDialog.setButton(DialogInterface.BUTTON_POSITIVE, |
- mContext.getText(AppResource.STRING_DATE_PICKER_DIALOG_SET), |
+ mContext.getText(R.string.date_picker_dialog_set), |
(DialogInterface.OnClickListener) mDialog); |
mDialog.setButton(DialogInterface.BUTTON_NEGATIVE, |
@@ -126,7 +123,7 @@ class InputDialogContainer { |
}); |
mDialog.setButton(DialogInterface.BUTTON_NEUTRAL, |
- mContext.getText(AppResource.STRING_DATE_PICKER_DIALOG_CLEAR), |
+ mContext.getText(R.string.date_picker_dialog_clear), |
new DialogInterface.OnClickListener() { |
@Override |
public void onClick(DialogInterface dialog, int which) { |