Index: platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java |
diff --git a/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java b/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java |
index ee1695afd1e9cd60fe25a0d44bd8a1ef271a023e..58497247413e969b4ede3f1f9a3ba2860e835aba 100644 |
--- a/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java |
+++ b/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java |
@@ -57,6 +57,9 @@ public class ViewerApplication extends Application { |
public void setTitle(String title) { |
mTitle = title; // Similar to mStateJsonStr, we have to store this. |
+ if (mTitle.startsWith("Viewer: ")) { // Quick hack to shorten the title |
+ mTitle = mTitle.replaceFirst("Viewer: ", ""); |
+ } |
if (mViewerActivity != null) { |
mViewerActivity.runOnUiThread(new Runnable() { |
@Override |