Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/android/AboutDialog.java

Issue 6731909971312640: Issue 1227 - Could not close the info-text (Closed)
Patch Set: Switched to anonymous inner class for OnClickListener Created Nov. 11, 2014, 11:30 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « res/layout/about.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/android/AboutDialog.java
diff --git a/src/org/adblockplus/android/AboutDialog.java b/src/org/adblockplus/android/AboutDialog.java
index 1dbadeeb3c13f080cd7920ea63b093d3b4886c1e..9f93380eda6d3bff518e58752e2472fbab19a002 100644
--- a/src/org/adblockplus/android/AboutDialog.java
+++ b/src/org/adblockplus/android/AboutDialog.java
@@ -24,7 +24,9 @@ import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
+import android.view.View;
import android.view.Window;
+import android.widget.Button;
import android.widget.TextView;
public class AboutDialog extends Dialog
@@ -78,5 +80,15 @@ public class AboutDialog extends Dialog
final TextView tv = (TextView) findViewById(R.id.about_text);
tv.setText(Html.fromHtml(info.toString()));
tv.setMovementMethod(LinkMovementMethod.getInstance());
+
+ final Button okButton = (Button) findViewById(R.id.close_about);
+ okButton.setOnClickListener(new View.OnClickListener()
+ {
+ @Override
+ public void onClick(View v)
+ {
+ AboutDialog.this.dismiss();
+ }
+ });
}
}
« no previous file with comments | « res/layout/about.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld