-
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.
allow getting forms from db without appending locale
allow configurability of different strategies of form identity naming
- Loading branch information
Showing
6 changed files
with
47 additions
and
19 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
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
11 changes: 11 additions & 0 deletions
11
...-wizard/src/main/java/com/vijay/jsonwizard/activities/NoLocaleJsonWizardFormActivity.java
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.vijay.jsonwizard.activities; | ||
|
||
import com.vijay.jsonwizard.utils.FormUtils; | ||
import com.vijay.jsonwizard.utils.FormUtilsFactory; | ||
|
||
public class NoLocaleJsonWizardFormActivity extends JsonWizardFormActivity { | ||
@Override | ||
protected FormUtils getFormUtils() { | ||
return FormUtilsFactory.noLocaleInstance(); | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
android-json-form-wizard/src/main/java/com/vijay/jsonwizard/utils/FormUtilsFactory.java
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.vijay.jsonwizard.utils; | ||
|
||
import android.content.Context; | ||
|
||
public class FormUtilsFactory { | ||
public static FormUtils newInstance(){ | ||
return new FormUtils(); | ||
} | ||
|
||
public static FormUtils noLocaleInstance(){ | ||
return new FormUtils(){ | ||
@Override | ||
protected String getLocaleFormIdentity(Context context, String formIdentity) { | ||
return formIdentity; | ||
} | ||
}; | ||
} | ||
} |
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