mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Compatibility fix in renaming for Android API < 12
This commit is contained in:
parent
6701c9842d
commit
4340d4f6e4
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue