|
|
@ -40,6 +40,7 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter |
|
|
|
private CustomAlertDialog customAlertDialog; |
|
|
|
|
|
|
|
private boolean shouldEnableAppScreenShot = true; |
|
|
|
private boolean shouldallowDefaultActivityTransition = false; |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) { |
|
|
@ -47,6 +48,7 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter |
|
|
|
if (!shouldEnableAppScreenShot) { |
|
|
|
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE); |
|
|
|
} |
|
|
|
if (!shouldallowDefaultActivityTransition) |
|
|
|
overridePendingTransition(0, 0); |
|
|
|
} |
|
|
|
|
|
|
@ -88,6 +90,10 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter |
|
|
|
this.shouldEnableAppScreenShot = action; |
|
|
|
} |
|
|
|
|
|
|
|
protected void allowDefaultActivityTransition(boolean action) { |
|
|
|
this.shouldallowDefaultActivityTransition = action; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void showPopUpMessage(String message, CustomAlertDialog.AlertType alertType, CustomAlertDialog.CustomDialogActionListener listener) { |
|
|
|
try { |
|
|
|