<string name="common_rename">Rename</string>
<string name="common_remove">Remove</string>
- <string name="confirmation_alert_prefix">Do you really want </string>
+ <string name="confirmation_alert_prefix">"Do you really want "</string>
<string name="confirmation_alert_suffix">"?"</string>
</resources>
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
- int confirmationTarget = getArguments().getInt(ARG_CONF_TARGET);
+ String confirmationTarget = getArguments().getString(ARG_CONF_TARGET);
+ if (confirmationTarget == null)
+ confirmationTarget = "";
return new AlertDialog.Builder(getActivity())
.setIcon(android.R.drawable.ic_dialog_alert)
- .setMessage(R.string.confirmation_alert_prefix + confirmationTarget + R.string.confirmation_alert_suffix )
+ .setMessage(getString(R.string.confirmation_alert_prefix) + confirmationTarget + getString(R.string.confirmation_alert_suffix))
.setPositiveButton(R.string.common_ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
view = inflater.inflate(mLayout, container, false);\r
mView = view;\r
\r
+ if (mLayout == R.layout.file_details_fragment) {\r
+ getView().findViewById(R.id.fdKeepInSync).setOnClickListener(this);\r
+ //getView().findViewById(R.id.fdShareBtn).setOnClickListener(this);\r
+ getView().findViewById(R.id.fdRenameBtn).setOnClickListener(this);\r
+ getView().findViewById(R.id.fdRemoveBtn).setOnClickListener(this);\r
+ }\r
+ \r
updateFileDetails();\r
return view;\r
}\r
break;\r
} \r
case R.id.fdRemoveBtn: {\r
- ConfirmationDialogFragment confDialog = ConfirmationDialogFragment.newInstance("remove " + mFile.getFileName());\r
+ ConfirmationDialogFragment confDialog = ConfirmationDialogFragment.newInstance("to remove " + mFile.getFileName());\r
confDialog.setOnConfirmationListener(this);\r
confDialog.show(getFragmentManager(), "REMOVE_CONFIRMATION_FRAGMENT");\r
break;\r
\r
CheckBox cb = (CheckBox)getView().findViewById(R.id.fdKeepInSync);\r
cb.setChecked(mFile.keepInSync());\r
- cb.setOnClickListener(this);\r
- //getView().findViewById(R.id.fdShareBtn).setOnClickListener(this);\r
- getView().findViewById(R.id.fdRenameBtn).setOnClickListener(this);\r
\r
if (mFile.getStoragePath() != null) {\r
// Update preview\r