Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java

Issue 1978843002: Change Android activity title from JNI call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Nits Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java
diff --git a/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java b/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java
index e3260c25f7389dbec24cca19be0773510d1251dd..d6fe710aeb0fa8fa0f8a3b9daf2f8f11886de67b 100644
--- a/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java
+++ b/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java
@@ -60,6 +60,7 @@ public class ViewerActivity
setContentView(R.layout.activity_main);
mApplication = (ViewerApplication) getApplication();
+ mApplication.setViewerActivity(this);
mView = (SurfaceView) findViewById(R.id.surfaceView);
mView.getHolder().addCallback(this);
@@ -67,6 +68,12 @@ public class ViewerActivity
}
@Override
+ protected void onDestroy() {
+ mApplication.setViewerActivity(null);
+ super.onDestroy();
+ }
+
+ @Override
public void surfaceCreated(SurfaceHolder holder) {
if (mApplication.getNativeHandle() != 0) {
onSurfaceCreated(mApplication.getNativeHandle(), holder.getSurface());
« no previous file with comments | « no previous file | platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ViewerApplication.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698