提交 923570dd 编写于 作者: J jackjintai

modify:

1、去掉部分log
上级 1965c025
......@@ -31,7 +31,7 @@ public class App extends Application {
kits.add(new DemoKit());
DoraemonKit.install(this, kits,"testProductId");
//是否显示入口icon
//DoraemonKit.setAwaysShowMianIcon(false);
//DoraemonKit.setAwaysShowMainIcon(false);
DoraemonKit.disableUpload();
Fresco.initialize(this);
DoraemonKit.setWebDoorCallback(new WebDoorManager.WebDoorCallback() {
......@@ -44,7 +44,7 @@ public class App extends Application {
}
});
//严格检查模式
//StrictMode.enableDefaults();
StrictMode.enableDefaults();
}
......
......@@ -18,5 +18,4 @@ public class DoraemonInterceptor implements Interceptor {
return chain.proceed(request);
}
}
\ No newline at end of file
......@@ -19,7 +19,4 @@ public class LargePictureInterceptor implements Interceptor {
return chain.proceed(request);
}
}
\ No newline at end of file
......@@ -13,17 +13,10 @@ import okhttp3.Response;
*/
public class MockInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request();
return chain.proceed(request);
}
}
\ No newline at end of file
......@@ -27,7 +27,7 @@ public class DokitFragmentLifecycleCallbacks extends FragmentManager.FragmentLif
@Override
public void onFragmentAttached(FragmentManager fm, Fragment fragment, Context context) {
super.onFragmentAttached(fm, fragment, context);
LogHelper.d(TAG, "onFragmentAttached: " + fragment);
//LogHelper.d(TAG, "onFragmentAttached: " + fragment);
if (fragment instanceof DbDebugFragment) {
DokitConstant.DB_DEBUG_FRAGMENT = new WeakReference<>((DbDebugFragment) fragment);
}
......@@ -39,7 +39,7 @@ public class DokitFragmentLifecycleCallbacks extends FragmentManager.FragmentLif
@Override
public void onFragmentDetached(FragmentManager fm, Fragment fragment) {
super.onFragmentDetached(fm, fragment);
LogHelper.d(TAG, "onFragmentDetached: " + fragment);
//LogHelper.d(TAG, "onFragmentDetached: " + fragment);
if (fragment instanceof DbDebugFragment) {
DokitConstant.DB_DEBUG_FRAGMENT.clear();
DokitConstant.DB_DEBUG_FRAGMENT = null;
......
......@@ -14,7 +14,7 @@ import java.util.List;
public class SingleLogcatReader extends AbsLogcatReader {
private static final String TAG="SingleLogcatReader";
private static final String TAG = "SingleLogcatReader";
private Process logcatProcess;
private BufferedReader bufferedReader;
......@@ -46,7 +46,7 @@ public class SingleLogcatReader extends AbsLogcatReader {
public void killQuietly() {
if (logcatProcess != null) {
RuntimeHelper.destroy(logcatProcess);
LogHelper.d(TAG,"killed 1 logcat process");
//LogHelper.d(TAG,"killed 1 logcat process");
}
}
......
......@@ -85,7 +85,7 @@ public class UIPerformanceManager implements LifecycleListenerUtil.LifecycleList
view.draw(mPerformanceCanvas);
long endTime = System.nanoTime();
float time = (endTime - startTime) / 10_000 / 100f;
LogHelper.d(TAG, "drawTime: " + time + " ms");
//LogHelper.d(TAG, "drawTime: " + time + " ms");
ViewInfo viewInfo = new ViewInfo(view);
viewInfo.drawTime = time;
viewInfo.layerNum = layerNum;
......
......@@ -107,7 +107,7 @@ public class ViewCheckDokitView extends AbsDokitView {
return null;
}
if (isNormalMode()) {
LogHelper.d(TAG, "x: " + x + ", y: " + y);
//LogHelper.d(TAG, "x: " + x + ", y: " + y);
return traverseViews(UIUtils.getDokitAppContentView(mResumedActivity), x, y);
} else {
return traverseViews(mResumedActivity.getWindow().getDecorView(), x, y);
......@@ -142,8 +142,8 @@ public class ViewCheckDokitView extends AbsDokitView {
}
} else {
if (view != null) {
LogHelper.i(TAG, "class: " + view.getClass() + ", left: " + left
+ ", right: " + right + ", top: " + top + ", bottom: " + bottom);
// LogHelper.i(TAG, "class: " + view.getClass() + ", left: " + left
// + ", right: " + right + ", top: " + top + ", bottom: " + bottom);
}
if (left < x && x < right && top < y && y < bottom) {
......
......@@ -21,7 +21,7 @@ import java.util.Map;
*/
public class DokitViewManager implements DokitViewManagerInterface {
public static final String TAG = "DokitViewManagerProxy";
private static final String TAG = "DokitViewManagerProxy";
/**
* 每个类型在页面中的位置 只保存marginLeft 和marginTop
*/
......@@ -98,7 +98,7 @@ public class DokitViewManager implements DokitViewManagerInterface {
* 只有普通浮标才会调用
* 保存每种类型dokitView的位置
*/
public void saveDokitViewPos(String tag, int marginLeft, int marginTop) {
void saveDokitViewPos(String tag, int marginLeft, int marginTop) {
if (mDokitViewPos == null) {
return;
}
......@@ -108,12 +108,14 @@ public class DokitViewManager implements DokitViewManagerInterface {
mDokitViewPos.put(tag, point);
} else {
Point point = mDokitViewPos.get(tag);
point.set(marginLeft, marginTop);
if (point != null) {
point.set(marginLeft, marginTop);
}
}
for (String key : mDokitViewPos.keySet()) {
LogHelper.i(TAG, "saveDokitViewPos key==> " + key + " point===>" + mDokitViewPos.get(key));
}
// for (String key : mDokitViewPos.keySet()) {
// LogHelper.i(TAG, "saveDokitViewPos key==> " + key + " point===>" + mDokitViewPos.get(key));
// }
}
/**
......@@ -128,9 +130,9 @@ public class DokitViewManager implements DokitViewManagerInterface {
return null;
}
for (String key : mDokitViewPos.keySet()) {
LogHelper.i(TAG, "getDokitViewPos key==> " + key + " point===>" + mDokitViewPos.get(key));
}
// for (String key : mDokitViewPos.keySet()) {
// LogHelper.i(TAG, "getDokitViewPos key==> " + key + " point===>" + mDokitViewPos.get(key));
// }
return mDokitViewPos.get(tag);
}
......
......@@ -153,7 +153,7 @@ class NormalDokitViewManager implements DokitViewManagerInterface {
//将所有的dokitView添加到新建的Activity中去
for (GlobalSingleDokitViewInfo dokitViewInfo : mGlobalSingleDokitViews.values()) {
LogHelper.i(TAG, " 新建activity==>" + activity.getClass().getSimpleName() + " dokitView==>" + dokitViewInfo.getTag());
//LogHelper.i(TAG, " 新建activity==>" + activity.getClass().getSimpleName() + " dokitView==>" + dokitViewInfo.getTag());
if (activity instanceof UniversalActivity && dokitViewInfo.getAbsDokitViewClass() != PerformanceDokitView.class) {
return;
}
......@@ -283,7 +283,7 @@ class NormalDokitViewManager implements DokitViewManagerInterface {
//判断该dokitview是否已经显示在页面上 同一个类型的dokitview 在页面上只显示一个
if (dokitIntent.mode == DokitIntent.MODE_SINGLE_INSTANCE) {
if (dokitViews.get(dokitIntent.getTag()) != null) {
LogHelper.i(TAG, dokitIntent.getTag() + "===>" + dokitViews.get(dokitIntent.getTag()).toString() + " has attached");
//LogHelper.i(TAG, dokitIntent.getTag() + "===>" + dokitViews.get(dokitIntent.getTag()).toString() + " has attached");
//拿到指定的dokitView并更新位置
dokitViews.get(dokitIntent.getTag()).updateViewLayout(dokitIntent.getTag(), true);
return;
......@@ -444,7 +444,7 @@ class NormalDokitViewManager implements DokitViewManagerInterface {
if (mGlobalSingleDokitViews.containsKey(tag)) {
mGlobalSingleDokitViews.remove(tag);
}
LogHelper.i(TAG, "dokitView detach====>" + tag);
//LogHelper.i(TAG, "dokitView detach====>" + tag);
}
......@@ -472,7 +472,6 @@ class NormalDokitViewManager implements DokitViewManagerInterface {
dokitViews.clear();
}
mGlobalSingleDokitViews.clear();
LogHelper.i(TAG, "dokitView detachAll====>");
}
/**
......
......@@ -32,7 +32,7 @@ import java.util.List;
*/
public class DkDropDownMenu extends LinearLayout {
public static final String TAG = "DkDropDownMenu";
private static final String TAG = "DkDropDownMenu";
//记录tabTexts的顺序
List<View> dropTabViews = new ArrayList<>();
//顶部菜单布局
......@@ -323,7 +323,7 @@ public class DkDropDownMenu extends LinearLayout {
* @param target
*/
private void switchMenu(View target) {
LogHelper.i(TAG, "current===>" + current_tab_position);
//LogHelper.i(TAG, "current===>" + current_tab_position);
for (int i = 0; i < tabMenuView.getChildCount(); i = i + 2) {
if (target == tabMenuView.getChildAt(i)) {
if (current_tab_position == i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册