use validation lib in cpp - small changes
This commit is contained in:
parent
7877235972
commit
580a296177
1 changed files with 7 additions and 7 deletions
|
@ -69,8 +69,8 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag
|
||||||
BasalEditDialog basalEditDialog;
|
BasalEditDialog basalEditDialog;
|
||||||
LinearLayout ll;
|
LinearLayout ll;
|
||||||
|
|
||||||
Boolean percentageViewHint = true;
|
static Boolean percentageViewHint = true;
|
||||||
Boolean timeshiftViewHint = true;
|
static Boolean timeshiftViewHint = true;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||||
|
@ -202,7 +202,7 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (timeshiftViewHint) {
|
if (timeshiftViewHint) {
|
||||||
customSnackbar(view, getString(R.string.timeshift_hint), "timeshiftViewHint");
|
customSnackbar(view, getString(R.string.timeshift_hint));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -218,7 +218,7 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (percentageViewHint) {
|
if (percentageViewHint) {
|
||||||
customSnackbar(view, getString(R.string.percentagefactor_hint), "percentageViewHint");
|
customSnackbar(view, getString(R.string.percentagefactor_hint));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -312,7 +312,7 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag
|
||||||
return layout;
|
return layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void customSnackbar(View view, String Msg, final String Hint) {
|
private void customSnackbar(View view, final String Msg) {
|
||||||
if (timeshiftViewHint || percentageViewHint) {
|
if (timeshiftViewHint || percentageViewHint) {
|
||||||
Snackbar mSnackBar = Snackbar.make(view,
|
Snackbar mSnackBar = Snackbar.make(view,
|
||||||
Msg,
|
Msg,
|
||||||
|
@ -322,9 +322,9 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag
|
||||||
.setAction(getString(R.string.dismiss), new View.OnClickListener() {
|
.setAction(getString(R.string.dismiss), new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (Hint.equals("percentageViewHint")) {
|
if (Msg.equals(getString(R.string.percentagefactor_hint))) {
|
||||||
percentageViewHint = false;
|
percentageViewHint = false;
|
||||||
} else if (Hint.equals("timeshiftViewHint")) {
|
} else if (Msg.equals(getString(R.string.timeshift_hint))) {
|
||||||
timeshiftViewHint = false;
|
timeshiftViewHint = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue