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

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

Issue 5606010064470016: Issue 1539 - Remove static Context variable (Closed)
Patch Set: Created Nov. 6, 2014, 12:20 p.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 | « no previous file | 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..5ab890926b304b76a1ad4b313fd38cf1fe0e6726 100644
--- a/src/org/adblockplus/android/AboutDialog.java
+++ b/src/org/adblockplus/android/AboutDialog.java
@@ -29,12 +29,9 @@ import android.widget.TextView;
public class AboutDialog extends Dialog
{
- private static Context context = null;
-
public AboutDialog(final Context context)
{
super(context);
- AboutDialog.context = context;
}
@Override
@@ -43,6 +40,7 @@ public class AboutDialog extends Dialog
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.about);
+ final Context context = this.getContext();
// Get package version code and name
String versionName = "--";
int versionCode = -1;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld