Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
DoraemonKit
提交
b5149ce3
D
DoraemonKit
项目概览
DiDi
/
DoraemonKit
大约 1 年 前同步成功
通知
166
Star
19623
Fork
3062
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DoraemonKit
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
b5149ce3
编写于
8月 28, 2019
作者:
L
LinJZong
提交者:
GitHub
8月 28, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #269 from sagdragon/master
OPTIMIZE:For maps where the keys are of type integer, it's typically …
上级
b32f92ba
de8b5dce
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
7 addition
and
9 deletion
+7
-9
Android/doraemonkit/src/main/java/com/didichuxing/doraemonkit/kit/logInfo/util/TagColorUtil.java
...idichuxing/doraemonkit/kit/logInfo/util/TagColorUtil.java
+6
-8
Android/doraemonkit_weex/src/main/java/com/didichuxing/doraemonkit/weex/devtool/DevToolActivity.java
...didichuxing/doraemonkit/weex/devtool/DevToolActivity.java
+1
-1
未找到文件。
Android/doraemonkit/src/main/java/com/didichuxing/doraemonkit/kit/logInfo/util/TagColorUtil.java
浏览文件 @
b5149ce3
...
...
@@ -3,21 +3,19 @@ package com.didichuxing.doraemonkit.kit.logInfo.util;
import
android.content.Context
;
import
android.support.v4.content.ContextCompat
;
import
android.util.Log
;
import
android.util.SparseIntArray
;
import
com.didichuxing.doraemonkit.R
;
import
java.util.HashMap
;
/**
* @author: linjizong
* @date: 2019/4/30
* @desc:
*/
public
class
TagColorUtil
{
private
static
final
HashMap
<
Integer
,
Integer
>
TEXT_COLOR
=
new
HashMap
<>
(
6
);
private
static
final
HashMap
<
Integer
,
Integer
>
TEXT_COLOR_EXPAND
=
new
HashMap
<>
(
6
);
private
static
final
HashMap
<
Integer
,
Integer
>
LEVEL_COLOR
=
new
HashMap
<>
(
6
);
private
static
final
HashMap
<
Integer
,
Integer
>
LEVEL_BG_COLOR
=
new
HashMap
<>
(
6
);
private
static
final
SparseIntArray
TEXT_COLOR
=
new
SparseIntArray
(
6
);
private
static
final
SparseIntArray
TEXT_COLOR_EXPAND
=
new
SparseIntArray
(
6
);
private
static
final
SparseIntArray
LEVEL_COLOR
=
new
SparseIntArray
(
6
);
private
static
final
SparseIntArray
LEVEL_BG_COLOR
=
new
SparseIntArray
(
6
);
static
{
TEXT_COLOR
.
put
(
Log
.
DEBUG
,
R
.
color
.
dk_color_000000
);
...
...
@@ -50,7 +48,7 @@ public class TagColorUtil {
}
public
static
int
getTextColor
(
Context
context
,
int
level
,
boolean
expand
)
{
HashMap
<
Integer
,
Integer
>
map
=
expand
?
TEXT_COLOR_EXPAND
:
TEXT_COLOR
;
SparseIntArray
map
=
expand
?
TEXT_COLOR_EXPAND
:
TEXT_COLOR
;
Integer
result
=
map
.
get
(
level
);
if
(
result
==
null
)
{
result
=
map
.
get
(
Log
.
VERBOSE
);
...
...
Android/doraemonkit_weex/src/main/java/com/didichuxing/doraemonkit/weex/devtool/DevToolActivity.java
浏览文件 @
b5149ce3
...
...
@@ -90,7 +90,7 @@ public class DevToolActivity extends AppCompatActivity {
}
private
void
handleNoResult
()
{
Toast
.
makeText
(
getApplicationContext
(),
"没有扫描到任何内容>_<"
,
Toast
.
LENGTH_SHORT
);
Toast
.
makeText
(
getApplicationContext
(),
"没有扫描到任何内容>_<"
,
Toast
.
LENGTH_SHORT
)
.
show
()
;
finish
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录