edw1nzhao / cs2340_group16

CS2340 Group 16 Crowd-Sourced Water Reporting App
2 stars 1 forks source link

Hide Toggle Button if AccountType is User #123

Closed tomonarifeehan closed 7 years ago

tomonarifeehan commented 7 years ago

Add the ability of the worker/manager to submit a purity report. Those with "USER" privilege cannot submit a purity report.

tomonarifeehan commented 7 years ago

Done. Just added:

        if (user.getAccountType() == AccountType.USER) {
            switchButton.setVisibility(View.INVISIBLE);
        }

into the onCreate() method in NewWaterSourceReport.java