Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-09-30 19:55:33 +02:00
commit a0e2c7852b

View file

@ -7,6 +7,7 @@ import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.TypedValue;
import android.view.Display;
@ -162,7 +163,11 @@ public class BasicDataFragment extends Fragment
@Override
public void afterTextChanged(Editable s) {
if (!getData().isInEdit()) {
if (!TextUtils.isEmpty(s)) {
getData().putTag(tag, s.toString());
} else {
getData().removeTag(tag);
}
}
}