We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b700e85 commit 0cda630Copy full SHA for 0cda630
app/src/main/java/org/glucosio/android/activity/HelloActivity.java
@@ -128,17 +128,10 @@ public void closeHelloActivity(){
128
finish();
129
}
130
131
- private void setError(TextView view, String text) {
132
- TextInputLayout parent = (TextInputLayout) view.getParent();
133
- parent.setError(text);
+ public void showToast(String text){
+ Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
134
135
136
- private void removeError(TextView view) {
137
138
- parent.setError(null);
139
- }
140
-
141
142
@Override
143
public boolean onCreateOptionsMenu(Menu menu) {
144
// Inflate the menu; this adds items to the action bar if it is present.
0 commit comments