summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRockchip2014-12-04 10:41:28 +0800
committerRockchip2014-12-04 10:41:28 +0800
commit661a37d58021709076514e373bb6a6953a762d27 (patch)
tree83494ea3a79e52e70edd3048feb6691228b46e2c
parent788a267feae8e4c717011269b44e1c7ba93c285c (diff)
show only one icon on launcher
-rwxr-xr-x[-rw-r--r--]AndroidManifest.xml1
-rw-r--r--src/com/android/camera/DisableCameraReceiver.java4
2 files changed, 2 insertions, 3 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 1fcd775..e187f99 100644..100755
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -67,7 +67,6 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
diff --git a/src/com/android/camera/DisableCameraReceiver.java b/src/com/android/camera/DisableCameraReceiver.java
index aea6ec5..1175ae3 100644
--- a/src/com/android/camera/DisableCameraReceiver.java
+++ b/src/com/android/camera/DisableCameraReceiver.java
@@ -38,9 +38,9 @@ public class DisableCameraReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// Disable camera-related activities if there is no camera.
- boolean needCameraActivity = CHECK_BACK_CAMERA_ONLY
+ boolean needCameraActivity = true;/*CHECK_BACK_CAMERA_ONLY
? hasBackCamera()
- : hasCamera();
+ : hasCamera();*/
if (!needCameraActivity) {
Log.i(TAG, "disable all camera activities");