Permalink
Browse files

sopa: temporary code to load browser during SOPA blackout

  • Loading branch information...
1 parent c89bdf2 commit a2a166049076124795b953c45708abda97e13a1b @talklittle committed Jan 15, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/com/andrewshu/android/reddit/threads/ThreadsListActivity.java
@@ -220,6 +220,16 @@ else if (getIntent().getData() != null) {
@Override
protected void onResume() {
super.onResume();
+
+ // SOPA blackout: Jan 18, 2012 from 8am-8pm EST (1300-0100 UTC)
+ long timeMillis = System.currentTimeMillis();
+ if (timeMillis >= 1326891600000L && timeMillis <= 1326934800000L) {
+ Toast.makeText(this, "Let's Protest SOPA", Toast.LENGTH_LONG).show();
+ Common.launchBrowser(this, "http://www.reddit.com", null, false, true, false, false);
+ finish();
+ return;
+ }
+
int previousTheme = mSettings.getTheme();
mSettings.loadRedditPreferences(this, mClient);

0 comments on commit a2a1660

Please sign in to comment.