Compatibility fix in renaming for Android API < 12

This commit is contained in:
David A. Velasco 2012-07-12 10:17:32 +02:00
parent 6701c9842d
commit 4340d4f6e4

View file

@ -748,7 +748,9 @@ public class FileDetailFragment extends SherlockFragment implements
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.edit_box_dialog, container, false);
String currentName = getArguments().getString("filename", "");
String currentName = getArguments().getString("filename");
if (currentName == null)
currentName = "";
((Button)v.findViewById(R.id.cancel)).setOnClickListener(this);
((Button)v.findViewById(R.id.ok)).setOnClickListener(this);