|
@@ -1,7 +1,6 @@
|
|
|
package com.benyanyi.crashlib.ui;
|
|
|
|
|
|
import android.content.Intent;
|
|
|
-import android.net.Uri;
|
|
|
import android.os.Bundle;
|
|
|
import android.view.Menu;
|
|
|
import android.view.MenuItem;
|
|
@@ -74,19 +73,19 @@ public class LogMessageActivity extends AppCompatActivity {
|
|
|
finish();
|
|
|
}
|
|
|
return true;
|
|
|
- } else if (item.getItemId() == R.id.share_crash_log) {
|
|
|
- shareCrashReport(filePath);
|
|
|
- return true;
|
|
|
+// } else if (item.getItemId() == R.id.share_crash_log) {
|
|
|
+// shareCrashReport(filePath);
|
|
|
+// return true;
|
|
|
} else {
|
|
|
return super.onOptionsItemSelected(item);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- private void shareCrashReport(String filePath) {
|
|
|
- Intent intent = new Intent(Intent.ACTION_SEND);
|
|
|
- intent.setType("*/*");
|
|
|
- intent.putExtra(Intent.EXTRA_TEXT, appInfo.getText().toString());
|
|
|
- intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(filePath)));
|
|
|
- startActivity(Intent.createChooser(intent, "Share via"));
|
|
|
- }
|
|
|
+//
|
|
|
+// private void shareCrashReport(String filePath) {
|
|
|
+// Intent intent = new Intent(Intent.ACTION_SEND);
|
|
|
+// intent.setType("*/*");
|
|
|
+// intent.putExtra(Intent.EXTRA_TEXT, appInfo.getText().toString());
|
|
|
+// intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(filePath)));
|
|
|
+// startActivity(Intent.createChooser(intent, "Share via"));
|
|
|
+// }
|
|
|
}
|