Skip to content

Commit db163c0

Browse files
authored
Merge pull request #816 from Blankj/1.23.2
1.23.2
2 parents 2ee43f1 + bc71310 commit db163c0

File tree

96 files changed

+1520
-1671
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1520
-1671
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* `19/01/24` [add] CloneUtils. Publish v1.23.2.
2+
* `19/01/24` [add] BrightnessUtils and FlashlightUtils.
13
* `19/01/23` [add] Modify the demo of utilcode use kotlin. Publish v1.23.1.
24
* `19/01/22` [fix] AppUtils#installApp.
35
* `19/01/17` [fix] Publish v1.23.0.

README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.23.1-brightgreen.svg
44+
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.23.2-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If this project helps you a lot and you want to support the project's developmen
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.23.1-brightgreen.svg
44+
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.23.2-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ext {
55
compileSdkVersion = 27
66
minSdkVersion = 14
77
targetSdkVersion = 27
8-
versionCode = 1_023_001
9-
versionName = '1.23.1'// E.g. 1.9.72 => 1,009,072
8+
versionCode = 1_023_002
9+
versionName = '1.23.2'// E.g. 1.9.72 => 1,009,072
1010

1111
bus = [
1212
isDebug: false,

launcher/app/__bus__.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"SubUtilActivity#start": "void com.blankj.subutil.pkg.feature.SubUtilActivity.start(android.content.Context)",
2+
"SubUtilActivity#start": "void com.blankj.subutil.pkg.feature.SubUtilActivity.Companion.start(android.content.Context)",
33
"CoreUtilActivity#start": "void com.blankj.utilcode.pkg.feature.CoreUtilActivity.Companion.start(android.content.Context)"
44
}

launcher/pkg/src/main/java/com/blankj/launcher/pkg/MainActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ class MainActivity : BaseDrawerActivity() {
3636
launcherMainCtl.setExpandedTitleColor(Color.TRANSPARENT)
3737
setSupportActionBar(launcherMainToolbar)
3838
val toggle = ActionBarDrawerToggle(this,
39-
mDrawerRootLayout,
39+
mBaseDrawerRootLayout,
4040
launcherMainToolbar,
4141
R.string.navigation_drawer_open,
4242
R.string.navigation_drawer_close)
43-
mDrawerRootLayout.addDrawerListener(toggle)
43+
mBaseDrawerRootLayout.addDrawerListener(toggle)
4444
toggle.syncState()
4545

46-
BarUtils.setStatusBarColor4Drawer(mDrawerRootLayout, launcherMainFakeStatusBar, Color.TRANSPARENT, false)
46+
BarUtils.setStatusBarColor4Drawer(mBaseDrawerRootLayout, launcherMainFakeStatusBar, Color.TRANSPARENT, false)
4747
BarUtils.addMarginTopEqualStatusBarHeight(launcherMainToolbar)
4848

4949
launcherMainCoreUtilBtn.setOnClickListener {

lib/base/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ dependencies {
1515
api dep.free_proguard
1616
api 'com.r0adkll:slidableactivity:2.0.5'
1717
compileOnly dep.leakcanary.android_no_op
18-
// api 'com.blankj:utilcode:1.23.1'
18+
// api 'com.blankj:utilcode:1.23.2'
1919
}

lib/base/src/main/java/com/blankj/lib/base/BaseBackActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ abstract class BaseBackActivity : BaseActivity() {
2323
super.setRootLayout(R.layout.activity_back)
2424
Slidr.attach(this)
2525
if (layoutId > 0) {
26-
LayoutInflater.from(this).inflate(layoutId, drawerContainerView)
26+
LayoutInflater.from(this).inflate(layoutId, baseBackContainerView)
2727
}
2828
setSupportActionBar(baseBackToolbar)
2929
supportActionBar?.setDisplayHomeAsUpEnabled(true)
3030

3131
BarUtils.setStatusBarColor(this, ContextCompat.getColor(Utils.getApp(), R.color.colorPrimary))
32-
BarUtils.addMarginTopEqualStatusBarHeight(backRootLayout)
32+
BarUtils.addMarginTopEqualStatusBarHeight(baseBackRootLayout)
3333
}
3434

3535
override fun onOptionsItemSelected(item: MenuItem): Boolean {

lib/base/src/main/java/com/blankj/lib/base/BaseDrawerActivity.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ import kotlinx.android.synthetic.main.activity_drawer.*
2020
*/
2121
abstract class BaseDrawerActivity : BaseActivity() {
2222

23-
protected lateinit var mDrawerRootLayout: DrawerLayout
24-
protected lateinit var mDrawerContainerView: FrameLayout
23+
protected lateinit var mBaseDrawerRootLayout: DrawerLayout
24+
protected lateinit var mBaseDrawerContainerView: FrameLayout
2525

2626
override fun setRootLayout(layoutId: Int) {
2727
super.setRootLayout(R.layout.activity_drawer)
2828
if (layoutId > 0) {
29-
LayoutInflater.from(this).inflate(layoutId, drawerContainerView)
29+
LayoutInflater.from(this).inflate(layoutId, baseDrawerContainerView)
3030
}
31-
drawerNavView.setNavigationItemSelectedListener l@{ item ->
31+
baseDrawerNavView.setNavigationItemSelectedListener l@{ item ->
3232
when (item.itemId) {
33-
R.id.action_git_hub -> return@l goWeb(R.string.github)
34-
R.id.action_blog -> return@l goWeb(R.string.blog)
33+
R.id.baseDrawerActionGitHub -> return@l goWeb(R.string.github)
34+
R.id.baseDrawerActionBlog -> return@l goWeb(R.string.blog)
3535
}
3636
false
3737
}
38-
mDrawerRootLayout = drawerRootLayout
39-
mDrawerContainerView = drawerContainerView
38+
mBaseDrawerRootLayout = baseDrawerRootLayout
39+
mBaseDrawerContainerView = baseDrawerContainerView
4040
}
4141

4242
private fun goWeb(@StringRes id: Int): Boolean {

lib/base/src/main/res/layout/activity_back.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
4-
android:id="@+id/backRootLayout"
4+
android:id="@+id/baseBackRootLayout"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
77
android:background="@color/white">
@@ -26,7 +26,7 @@
2626
app:layout_behavior="@string/appbar_scrolling_view_behavior">
2727

2828
<FrameLayout
29-
android:id="@+id/drawerContainerView"
29+
android:id="@+id/baseBackContainerView"
3030
android:layout_width="match_parent"
3131
android:layout_height="match_parent" />
3232
</android.support.v4.widget.NestedScrollView>

0 commit comments

Comments
 (0)