• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

opensrp / opensrp-client-core / #174

pending completion
#174

Pull #921

github-actions

web-flow
Merge 66d3a69a9 into f9f6e7f97
Pull Request #921: Refactor user settings task

18309 of 26768 relevant lines covered (68.4%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
opensrp-core/src/main/java/org/smartregister/sync/SaveANMTeamTask.java
1
package org.smartregister.sync;
2

3
import android.os.AsyncTask;
4

5
import org.smartregister.repository.AllSettings;
6

7
import timber.log.Timber;
8

9
/**
10
 * Created by samuelgithengi on 1/2/18.
11
 */
12

13
public class SaveANMTeamTask extends AsyncTask<String, Void, String> {
14
    private final AllSettings allSettings;
15

16
    public SaveANMTeamTask(AllSettings allSettings) {
1✔
17
        this.allSettings = allSettings;
1✔
18
    }
1✔
19

20
    @Override
21
    protected String doInBackground(String... strings) {
22
        String anmTeam = strings[0];
1✔
23
        allSettings.saveANMTeam(anmTeam);
1✔
24
        return anmTeam;
1✔
25
    }
26

27
    @Override
28
    protected void onPostExecute(String s) {
29
        Timber.i("SaveANMTeamTask executed successfully");
×
30
        super.onPostExecute(s);
×
31
    }
×
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc