Skip to content

Commit becc5f4

Browse files
author
Blankj
committed
see 08/01 log
1 parent a9de7c5 commit becc5f4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
android:theme="@style/AppTheme">
5454
<activity
5555
android:name=".MainActivity"
56-
android:screenOrientation="user"
56+
android:screenOrientation="sensor"
5757
android:windowSoftInputMode="stateHidden|adjustPan">
5858
<intent-filter>
5959
<action android:name="android.intent.action.MAIN" />

app/src/main/java/com/blankj/androidutilcode/feature/core/screen/ScreenAdaptActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private void updateLayout() {
7676
ViewGroup.LayoutParams upLayoutParams = tvUp.getLayoutParams();
7777
ViewGroup.LayoutParams downLayoutParams = tvDown.getLayoutParams();
7878
if (ScreenUtils.isFullScreen(this)) {
79-
int height = 720 / 2 / 2;
79+
int height = 360 / 2;
8080
String s = height + "dp";
8181
upLayoutParams.height = SizeUtils.dp2px(this, height);
8282
tvUp.setLayoutParams(upLayoutParams);
@@ -86,7 +86,7 @@ private void updateLayout() {
8686
tvDown.setLayoutParams(downLayoutParams);
8787
tvDown.setText(s);
8888
} else {
89-
int height = 720 / 2 / 2 - statusBarHeightInDp / 2;
89+
int height = 360 / 2 - statusBarHeightInDp / 2;
9090
String s = height + "dp";
9191
upLayoutParams.height = SizeUtils.dp2px(this, height);
9292
tvUp.setLayoutParams(upLayoutParams);

config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def configLibAndroidDomain(Project pro) {
146146
def configAppDependencies(Project pro) {
147147
pro.dependencies {
148148
implementation fileTree(include: ['*.jar'], dir: 'libs')
149-
// implementation project(':utilcode')
149+
implementation project(':utilcode')
150150
implementation project(':subutil')
151151

152152
implementation depConfig.support.appcompat_v7
@@ -155,7 +155,7 @@ def configAppDependencies(Project pro) {
155155
// LeakCanary
156156
debugImplementation depConfig.leakcanary.android
157157
releaseImplementation depConfig.leakcanary.android_no_op
158-
implementation 'com.blankj:utilcode:1.18.0'
158+
// implementation 'com.blankj:utilcode:1.18.0'
159159
}
160160
}
161161

0 commit comments

Comments
 (0)