File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
java/com/yoti/mobile/android/sdk/sampleapp
yoti-sdk/src/main/java/com/yoti/mobile/android/sdk Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ public void onStartScenarioError(YotiSDKException cause) {
44
44
@ Override
45
45
public void onYotiAppNotInstalledError (YotiSDKNoYotiAppException cause ) {
46
46
//The Yoti app is not installed, let's deal with it
47
+ yotiSDKButton .setVisibility (View .VISIBLE );
48
+ progress .setVisibility (View .GONE );
49
+ message .setText (R .string .loc_no_yoti_app_error );
47
50
}
48
51
});
49
52
Original file line number Diff line number Diff line change 4
4
<string name =" share_my_phone" >Share my phone</string >
5
5
6
6
<string name =" loc_error_unknow" >Something went wrong :(</string >
7
+ <string name =" loc_no_yoti_app_error" >The Yoti app is not install in this device</string >
7
8
<string name =" loc_error_not_completed_on_yoti" >Process not completed on the Yoti App</string >
8
9
<string name =" loc_phone_number" >Your phone number is : %s</string >
9
10
</resources >
Original file line number Diff line number Diff line change @@ -104,12 +104,10 @@ public void onClick(View v) {
104
104
105
105
YotiSDKLogger .error (cause .getMessage (), cause );
106
106
107
- if (mOnYotiButtonClickListener != null ) {
108
- mOnYotiButtonClickListener .onStartScenarioError (cause );
109
- }
110
-
111
107
if (mOnYotiAppNotInstalledListener != null && cause instanceof YotiSDKNoYotiAppException ) {
112
108
mOnYotiAppNotInstalledListener .onYotiAppNotInstalledError ((YotiSDKNoYotiAppException ) cause );
109
+ } else if (mOnYotiButtonClickListener != null ) {
110
+ mOnYotiButtonClickListener .onStartScenarioError (cause );
113
111
}
114
112
}
115
113
}
You can’t perform that action at this time.
0 commit comments