Skip to content

Commit

Permalink
sopa: temporary code to load browser during SOPA blackout
Browse files Browse the repository at this point in the history
  • Loading branch information
talklittle committed Jan 15, 2012
1 parent c89bdf2 commit a2a1660
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/com/andrewshu/android/reddit/threads/ThreadsListActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a2a1660

Please sign in to comment.