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

opensrp / opensrp-client-core / #175

pending completion
#175

push

github-actions

web-flow
Merge pull request #921 from opensrp/refactor-user-settings-task

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

62.5
opensrp-core/src/main/java/org/smartregister/sync/SaveUserInfoTask.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 Dimas Ciputra on 3/24/15.
11
 */
12
public class SaveUserInfoTask extends AsyncTask<String, Void, String> {
13
    private final AllSettings allSettings;
14

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

19
    @Override
20
    protected String doInBackground(String... strings) {
21
        allSettings.saveUserInformation(strings[0]);
1✔
22
        return strings[0];
1✔
23
    }
24

25
    @Override
26
    protected void onPostExecute(String s) {
27
        Timber.i("SaveUserInfoTask executed successfully");
×
28
        super.onPostExecute(s);
×
29
    }
×
30
}
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