Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ba2ffd8 authored by John Spurlock's avatar John Spurlock
Browse files

Show current build number in the new bugreport tile.

Change-Id: I20c3894e115a4b3ff0a82016eb86d42f48fa6d54
parent 1cd74dde
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -561,4 +561,6 @@


    <!-- Shows when people have pressed the unlock icon to explain how to unlock. [CHAR LIMIT=60] -->
    <!-- Shows when people have pressed the unlock icon to explain how to unlock. [CHAR LIMIT=60] -->
    <string name="keyguard_unlock">Swipe up to unlock</string>
    <string name="keyguard_unlock">Swipe up to unlock</string>

    <string name="bugreport_tile_extended" translatable="false">%s\n%s (%s)</string>
</resources>
</resources>
+6 −1
Original line number Original line Diff line number Diff line
@@ -21,6 +21,7 @@ import android.app.AlertDialog;
import android.app.Dialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.DialogInterface.OnClickListener;
import android.os.Build;
import android.os.RemoteException;
import android.os.RemoteException;
import android.provider.Settings.Global;
import android.provider.Settings.Global;
import android.view.WindowManager;
import android.view.WindowManager;
@@ -70,7 +71,11 @@ public class BugreportTile extends QSTile<QSTile.State> {
    protected void handleUpdateState(State state, Object pushArg) {
    protected void handleUpdateState(State state, Object pushArg) {
        state.visible = mSetting.getValue() != 0;
        state.visible = mSetting.getValue() != 0;
        state.iconId = R.drawable.ic_qs_bugreport;
        state.iconId = R.drawable.ic_qs_bugreport;
        state.label = mContext.getString(com.android.internal.R.string.bugreport_title);
        state.label = mContext.getString(
                R.string.bugreport_tile_extended,
                mContext.getString(com.android.internal.R.string.bugreport_title),
                Build.VERSION.RELEASE,
                Build.ID);
    }
    }


    private final Runnable mShowDialog = new Runnable() {
    private final Runnable mShowDialog = new Runnable() {