summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/bluetooth/Utils.java')
-rwxr-xr-xsrc/com/android/settings/bluetooth/Utils.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/com/android/settings/bluetooth/Utils.java b/src/com/android/settings/bluetooth/Utils.java
index 6590b06..fb44d5a 100755
--- a/src/com/android/settings/bluetooth/Utils.java
+++ b/src/com/android/settings/bluetooth/Utils.java
@@ -16,15 +16,11 @@
package com.android.settings.bluetooth;
-import android.app.Activity;
import android.app.AlertDialog;
import android.bluetooth.BluetoothClass;
import android.bluetooth.BluetoothProfile;
import android.content.Context;
import android.content.DialogInterface;
-import android.content.pm.ApplicationInfo;
-import android.content.pm.PackageManager;
-import android.content.pm.PackageManager.NameNotFoundException;
import android.widget.Toast;
import com.android.settings.R;
@@ -106,18 +102,4 @@ final class Utils {
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}
}
-
- /**
- * Get application name of the calling activity. Returns empty string on errors.
- */
- static String getCallingApp(Activity activity) {
- final PackageManager pm = activity.getApplicationContext().getPackageManager();
- ApplicationInfo applicationInfo;
- try {
- applicationInfo = pm.getApplicationInfo(activity.getCallingPackage(), 0);
- } catch (final NameNotFoundException e) {
- applicationInfo = null;
- }
- return (applicationInfo == null) ? "" : pm.getApplicationLabel(applicationInfo).toString();
- }
}