Allow to disable confirm messages
This commit is contained in:
parent
4bcdcc03c6
commit
a20fd632be
|
@ -905,7 +905,10 @@ public class Helper {
|
|||
String message = "";
|
||||
final SharedPreferences sharedpreferences = context.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||
boolean display_confirm = sharedpreferences.getBoolean(Helper.SET_DISPLAY_CONFIRM, true);
|
||||
if( statusCode >= 200 && statusCode < 400 && display_confirm){
|
||||
if( !display_confirm){
|
||||
return;
|
||||
}
|
||||
if( statusCode >= 200 && statusCode < 400 ){
|
||||
if( statusAction == API.StatusAction.BLOCK){
|
||||
message = context.getString(R.string.toast_block);
|
||||
}else if(statusAction == API.StatusAction.UNBLOCK){
|
||||
|
|
Loading…
Reference in New Issue