[tor-commits] [orbot/master] purge unused OrbotLogActivity

n8fr8 at torproject.org n8fr8 at torproject.org
Thu Jun 25 14:59:59 UTC 2015


commit 2f7ddc44237779b0713936aeaa2408808f9735dc
Author: Hans-Christoph Steiner <hans at eds.org>
Date:   Tue Jun 9 15:11:01 2015 -0400

    purge unused OrbotLogActivity
---
 AndroidManifest.xml                                |    8 +--
 .../torproject/android/ui/OrbotLogActivity.java    |   76 --------------------
 2 files changed, 1 insertion(+), 83 deletions(-)

diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d7912e5..603ac70 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -56,13 +56,7 @@
             </intent-filter>
             
         </activity>
-        
-        
-        <activity android:name=".ui.OrbotLogActivity" 
-            android:configChanges="orientation|screenSize"
-            android:exported="false"
-            />
-        
+
         <!-- 
         This is for ensuring the background service still runs when/if the app is swiped away
          -->
diff --git a/src/org/torproject/android/ui/OrbotLogActivity.java b/src/org/torproject/android/ui/OrbotLogActivity.java
deleted file mode 100644
index fbf05d2..0000000
--- a/src/org/torproject/android/ui/OrbotLogActivity.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Copyright (c) 2009, Nathan Freitas, Orbot / The Guardian Project - https://guardianproject.info */
-/* See LICENSE for licensing information */
-
-package org.torproject.android.ui;
-
-import org.torproject.android.OrbotConstants;
-import org.torproject.android.service.TorServiceConstants;
-
-import android.app.Activity;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.os.Bundle;
-import android.support.v4.content.LocalBroadcastManager;
-
-
-public class OrbotLogActivity extends Activity implements OrbotConstants
-{
-	
-    /** Called when the activity is first created. */
-	public void onCreate(Bundle savedInstanceState) {
-        super.onCreate(savedInstanceState);
-        
-    	doLayout();
-		LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver,
-			      new IntentFilter(TorServiceConstants.LOCAL_ACTION_LOG));
-
-		
-	}
-	
-	// Our handler for received Intents. This will be called whenever an Intent
-	// with an action named "custom-event-name" is broadcasted.
-	private BroadcastReceiver mMessageReceiver = new BroadcastReceiver() {
-		
-		
-		
-	  @Override
-	  public void onReceive(Context context, Intent intent) {
-	    // Get extra data included in the Intent
-		  
-		if (intent.hasExtra(TorServiceConstants.LOCAL_EXTRA_LOG))
-		{
-			String log = intent.getStringExtra(TorServiceConstants.LOCAL_EXTRA_LOG);
-			updateStatus(log);
-		}
-		
-		
-	  }
-	};
-
-	
-	
-	private void doLayout ()
-	{
-		
-
-    }
-	
-	
-	private void updateStatus(String log)
-	{
-		
-	}
-   
-
-   	@Override
-	protected void onDestroy() {
-		super.onDestroy();
-		  LocalBroadcastManager.getInstance(this).unregisterReceiver(mMessageReceiver);
-
-	}
-
-	
-
-}





More information about the tor-commits mailing list