feat(settings/debug): add action to open app info

This commit is contained in:
FineFindus
2023-04-20 17:31:58 +02:00
parent 47a3834716
commit 6b8418845e

View File

@@ -7,6 +7,7 @@ import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
@@ -471,6 +472,10 @@ public class SettingsFragment extends MastodonToolbarFragment{
UiUtils.copyText(view, prefBuilder.toString());
}));
items.add(new TextItem("Open App Info", () ->
getContext().startActivity(new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
.setData(Uri.fromParts("package", getContext().getPackageName(), null))))
);
items.add(new TextItem("Open developer settings", ()-> getContext().startActivity(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS))));
}