fixed crashreport icon

This commit is contained in:
gdlbo
2022-06-25 12:01:26 +03:00
parent c056add894
commit a7f23c7b72
@@ -2,6 +2,7 @@ package ru.vtosters.lite.f0x1d;
import static ru.vtosters.lite.utils.About.getBuildNumber; import static ru.vtosters.lite.utils.About.getBuildNumber;
import static ru.vtosters.lite.utils.Globals.getContext; import static ru.vtosters.lite.utils.Globals.getContext;
import static ru.vtosters.lite.utils.Globals.getIdentifier;
import static ru.vtosters.lite.utils.Globals.getString; import static ru.vtosters.lite.utils.Globals.getString;
import android.app.Activity; import android.app.Activity;
@@ -15,8 +16,6 @@ import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.util.Log; import android.util.Log;
import com.vtosters.lite.R;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.StringWriter; import java.io.StringWriter;
@@ -60,7 +59,7 @@ public class Crashreporter{
var psaveLogIntent = PendingIntent.getService(getContext(), 0, saveLogIntent, PendingIntent.FLAG_CANCEL_CURRENT); var psaveLogIntent = PendingIntent.getService(getContext(), 0, saveLogIntent, PendingIntent.FLAG_CANCEL_CURRENT);
var builder = new Notification.Builder(getContext()); var builder = new Notification.Builder(getContext());
builder.setSmallIcon(R.drawable.ic_bug_24); builder.setSmallIcon(getIdentifier("ic_bug_24", "drawable"));
builder.setContentTitle(getString("vtl_crashed")); builder.setContentTitle(getString("vtl_crashed"));
builder.setContentText(logString); builder.setContentText(logString);
builder.setStyle(new Notification.BigTextStyle().bigText(logString)); builder.setStyle(new Notification.BigTextStyle().bigText(logString));