Show current build number in the new bugreport tile.

Change-Id: I20c3894e115a4b3ff0a82016eb86d42f48fa6d54
This commit is contained in:
John Spurlock
2014-05-19 12:32:19 -04:00
parent 1cd74ddece
commit 9ba2ffd86d
2 changed files with 8 additions and 1 deletions

View File

@@ -561,4 +561,6 @@
<!-- 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="bugreport_tile_extended" translatable="false">%s\n%s (%s)</string>
</resources>

View File

@@ -21,6 +21,7 @@ import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Build;
import android.os.RemoteException;
import android.provider.Settings.Global;
import android.view.WindowManager;
@@ -70,7 +71,11 @@ public class BugreportTile extends QSTile<QSTile.State> {
protected void handleUpdateState(State state, Object pushArg) {
state.visible = mSetting.getValue() != 0;
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() {