-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update code to use ClientFormContract interfaces from client-utils
- Loading branch information
Showing
8 changed files
with
43 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
import android.support.annotation.NonNull; | ||
|
||
import org.smartregister.client.utils.contract.ClientFormDao; | ||
import org.smartregister.client.utils.contract.ClientFormContract; | ||
|
||
/** | ||
* Created by Ephraim Kigamba - [email protected] on 29-06-2020. | ||
|
@@ -18,7 +18,7 @@ public static final boolean init() { | |
return false; | ||
} | ||
|
||
public ClientFormDao getClientFormDao() { | ||
public ClientFormContract.Dao getClientFormDao() { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
import org.smartregister.client.utils.contract.ClientFormContract; | ||
import org.smartregister.client.utils.contract.JsonSubFormAndRulesLoader; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.IOException; | ||
|
@@ -29,7 +27,7 @@ | |
/** | ||
* Created by Ephraim Kigamba - [email protected] on 29-06-2020. | ||
*/ | ||
public class FormConfigurationJsonFormActivity extends JsonFormActivity implements ClientFormContract.View { | ||
public class FormConfigurationJsonFormActivity extends JsonFormActivity { | ||
|
||
private FormUtils formUtils; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
import android.support.annotation.NonNull; | ||
|
||
import org.smartregister.client.utils.contract.ClientFormDao; | ||
import org.smartregister.client.utils.contract.ClientFormContract; | ||
|
||
/** | ||
* Created by Ephraim Kigamba - [email protected] on 21-05-2020. | ||
*/ | ||
public interface RollbackDialogCallback { | ||
|
||
void onFormSelected(@NonNull ClientFormDao.ClientFormModel selectedForm); | ||
void onFormSelected(@NonNull ClientFormContract.Model selectedForm); | ||
|
||
void onCancelClicked(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters