Skip to content

Commit

Permalink
删除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
maning0303 committed Sep 19, 2019
1 parent f30ca7d commit 16bd8a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
17 changes: 2 additions & 15 deletions app/src/main/java/com/maning/crashmonitor/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
package com.maning.crashmonitor;

import android.app.Activity;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.maning.librarycrashmonitor.MCrashMonitor;
import com.maning.librarycrashmonitor.ui.activity.CrashListActivity;
import com.maning.librarycrashmonitor.utils.MActivityListUtil;

import java.util.List;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

Expand Down Expand Up @@ -83,10 +70,10 @@ public void onClick(View v) {
break;
case R.id.btn_log_list:
//打开日志列表
MCrashMonitor.startCrashListPage(this);
MCrashMonitor.startCrashListPage(mContext);
break;
case R.id.btn_next_page:
startActivity(new Intent(this, SecondActivity.class));
startActivity(new Intent(mContext, SecondActivity.class));
break;
case R.id.btn_add_extra_info:
String extraInfo = "用户手机号码:16666666666" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Build;
import android.os.SystemClock;
import android.support.annotation.RequiresApi;
import android.support.v4.app.NotificationCompat;
import android.text.TextUtils;
import android.util.Log;

import com.maning.librarycrashmonitor.MCrashMonitor;
import com.maning.librarycrashmonitor.R;
import com.maning.librarycrashmonitor.listener.MCrashCallBack;
import com.maning.librarycrashmonitor.MCrashMonitor;
import com.maning.librarycrashmonitor.ui.activity.CrashListActivity;
import com.maning.librarycrashmonitor.utils.MFileUtils;

Expand Down

0 comments on commit 16bd8a4

Please sign in to comment.