mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix intermittent apparently random crash
I have no idea why this crashed. Adding a guard just in case
This commit is contained in:
parent
264483838c
commit
b16d89fb49
1 changed files with 3 additions and 1 deletions
|
|
@ -61,8 +61,10 @@ public class SingleUploadFragment extends SherlockFragment {
|
||||||
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {}
|
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {}
|
||||||
|
|
||||||
public void afterTextChanged(Editable editable) {
|
public void afterTextChanged(Editable editable) {
|
||||||
|
if(getSherlockActivity() != null) {
|
||||||
getSherlockActivity().invalidateOptionsMenu();
|
getSherlockActivity().invalidateOptionsMenu();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
titleEdit.addTextChangedListener(uploadEnabler);
|
titleEdit.addTextChangedListener(uploadEnabler);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue