fix fix fix
This commit is contained in:
@@ -8,6 +8,9 @@ import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.CountDownTimer;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.view.WindowInsets;
|
||||
import android.view.WindowInsetsController;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
@@ -36,6 +39,25 @@ public class IncomingCallActivity extends Activity {
|
||||
}
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
|
||||
// 真全屏:隐藏状态栏和导航栏
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
getWindow().setDecorFitsSystemWindows(false);
|
||||
WindowInsetsController wic = getWindow().getInsetsController();
|
||||
if (wic != null) {
|
||||
wic.hide(WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars());
|
||||
wic.setSystemBarsBehavior(WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE);
|
||||
}
|
||||
} else {
|
||||
//noinspection deprecation
|
||||
getWindow().getDecorView().setSystemUiVisibility(
|
||||
View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
|
||||
}
|
||||
|
||||
String caller = getIntent().getStringExtra("caller");
|
||||
int ringDuration = getIntent().getIntExtra("ringDuration", 30);
|
||||
boolean autoAccept = getIntent().getBooleanExtra("auto_accept", false);
|
||||
@@ -121,7 +143,7 @@ public class IncomingCallActivity extends Activity {
|
||||
FrameLayout.LayoutParams.MATCH_PARENT,
|
||||
FrameLayout.LayoutParams.WRAP_CONTENT);
|
||||
rowLp.gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
|
||||
rowLp.bottomMargin = dp(78);
|
||||
rowLp.bottomMargin = dp(48);
|
||||
rowLp.leftMargin = dp(13);
|
||||
rowLp.rightMargin = dp(13);
|
||||
btnRow.setLayoutParams(rowLp);
|
||||
|
||||
@@ -39,6 +39,7 @@ public class RnpayProxyService extends BaseProxyService {
|
||||
if (userId <= 0) userId = prefs.getInt("userId", 0);
|
||||
|
||||
JSONObject body = new JSONObject();
|
||||
body.put("cardId", walletId);
|
||||
body.put("walletType", walletType);
|
||||
body.put("params", params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user