Remove QuickAction from SL4A
Bug: 26253579
Change-Id: I5a08e7945c837d700dbe07139398d8e5db0d2657
diff --git a/sl4a/QuickAction/Android.mk b/sl4a/QuickAction/Android.mk
deleted file mode 100644
index f8a942f..0000000
--- a/sl4a/QuickAction/Android.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Copyright (C) 2015 Google, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-
-LOCAL_MODULE := sl4a.QuickAction
-LOCAL_MODULE_OWNER := google
-LOCAL_STATIC_JAVA_LIBRARIES := guava android-common
-LOCAL_SRC_FILES := $(call all-java-files-under, src/net/londatiga/android)
-LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
-
-include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/sl4a/QuickAction/AndroidManifest.xml b/sl4a/QuickAction/AndroidManifest.xml
deleted file mode 100644
index 7b78457..0000000
--- a/sl4a/QuickAction/AndroidManifest.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="net.londatiga.android">
- <application android:icon="@drawable/icon" android:label="@string/app_name"/>
-</manifest>
-
diff --git a/sl4a/QuickAction/proguard.flags b/sl4a/QuickAction/proguard.flags
deleted file mode 100644
index dba4932..0000000
--- a/sl4a/QuickAction/proguard.flags
+++ /dev/null
@@ -1,6 +0,0 @@
-
--keepclassmembers class net.londatiga.android.R {
- public *;
-}
-
--keep class net.londatiga.android.R
\ No newline at end of file
diff --git a/sl4a/QuickAction/project.properties b/sl4a/QuickAction/project.properties
deleted file mode 100644
index e29bb48..0000000
--- a/sl4a/QuickAction/project.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-
-android.library=true
-# Indicates whether an apk should be generated for each density.
-split.density=false
-# Project target.
-target=android-19
-
-proguard.config=proguard.flags
diff --git a/sl4a/QuickAction/res/anim/grow_from_bottom.xml b/sl4a/QuickAction/res/anim/grow_from_bottom.xml
deleted file mode 100644
index 74b817a..0000000
--- a/sl4a/QuickAction/res/anim/grow_from_bottom.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="0.3" android:toXScale="1.0"
- android:fromYScale="0.3" android:toYScale="1.0"
- android:pivotX="50%" android:pivotY="100%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/decelerate_interpolator"
- android:fromAlpha="0.0" android:toAlpha="1.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
diff --git a/sl4a/QuickAction/res/anim/grow_from_bottomleft_to_topright.xml b/sl4a/QuickAction/res/anim/grow_from_bottomleft_to_topright.xml
deleted file mode 100644
index 72c41d3..0000000
--- a/sl4a/QuickAction/res/anim/grow_from_bottomleft_to_topright.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="0.3" android:toXScale="1.0"
- android:fromYScale="0.3" android:toYScale="1.0"
- android:pivotX="0%" android:pivotY="50%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/decelerate_interpolator"
- android:fromAlpha="0.0" android:toAlpha="1.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/anim/grow_from_bottomright_to_topleft.xml b/sl4a/QuickAction/res/anim/grow_from_bottomright_to_topleft.xml
deleted file mode 100644
index af90ea6..0000000
--- a/sl4a/QuickAction/res/anim/grow_from_bottomright_to_topleft.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="0.3" android:toXScale="1.0"
- android:fromYScale="0.3" android:toYScale="1.0"
- android:pivotX="100%" android:pivotY="50%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/decelerate_interpolator"
- android:fromAlpha="0.0" android:toAlpha="1.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/anim/grow_from_top.xml b/sl4a/QuickAction/res/anim/grow_from_top.xml
deleted file mode 100644
index a1715c4..0000000
--- a/sl4a/QuickAction/res/anim/grow_from_top.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="0.3" android:toXScale="1.0"
- android:fromYScale="0.3" android:toYScale="1.0"
- android:pivotX="50%" android:pivotY="0%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/decelerate_interpolator"
- android:fromAlpha="0.0" android:toAlpha="1.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
diff --git a/sl4a/QuickAction/res/anim/grow_from_topleft_to_bottomright.xml b/sl4a/QuickAction/res/anim/grow_from_topleft_to_bottomright.xml
deleted file mode 100644
index 3f9d7e9..0000000
--- a/sl4a/QuickAction/res/anim/grow_from_topleft_to_bottomright.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="0.3" android:toXScale="1.0"
- android:fromYScale="0.3" android:toYScale="1.0"
- android:pivotX="0%" android:pivotY="0%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/decelerate_interpolator"
- android:fromAlpha="0.0" android:toAlpha="1.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
diff --git a/sl4a/QuickAction/res/anim/grow_from_topright_to_bottomleft.xml b/sl4a/QuickAction/res/anim/grow_from_topright_to_bottomleft.xml
deleted file mode 100644
index 4abf0f1..0000000
--- a/sl4a/QuickAction/res/anim/grow_from_topright_to_bottomleft.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="0.3" android:toXScale="1.0"
- android:fromYScale="0.3" android:toYScale="1.0"
- android:pivotX="100%" android:pivotY="0%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/decelerate_interpolator"
- android:fromAlpha="0.0" android:toAlpha="1.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/anim/rail.xml b/sl4a/QuickAction/res/anim/rail.xml
deleted file mode 100644
index f3b2d9e..0000000
--- a/sl4a/QuickAction/res/anim/rail.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<translate
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:fromXDelta="100%p"
- android:toXDelta="0"
- android:duration="325" />
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/anim/shrink_from_bottom.xml b/sl4a/QuickAction/res/anim/shrink_from_bottom.xml
deleted file mode 100644
index 61b8f0c..0000000
--- a/sl4a/QuickAction/res/anim/shrink_from_bottom.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="1.0" android:toXScale="0.3"
- android:fromYScale="1.0" android:toYScale="0.3"
- android:pivotX="50%" android:pivotY="0%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/accelerate_interpolator"
- android:fromAlpha="1.0" android:toAlpha="0.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
diff --git a/sl4a/QuickAction/res/anim/shrink_from_bottomleft_to_topright.xml b/sl4a/QuickAction/res/anim/shrink_from_bottomleft_to_topright.xml
deleted file mode 100644
index 9d9cdff..0000000
--- a/sl4a/QuickAction/res/anim/shrink_from_bottomleft_to_topright.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="1.0" android:toXScale="0.3"
- android:fromYScale="1.0" android:toYScale="0.3"
- android:pivotX="100%" android:pivotY="0%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/accelerate_interpolator"
- android:fromAlpha="1.0" android:toAlpha="0.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/anim/shrink_from_bottomright_to_topleft.xml b/sl4a/QuickAction/res/anim/shrink_from_bottomright_to_topleft.xml
deleted file mode 100644
index da6a2ca..0000000
--- a/sl4a/QuickAction/res/anim/shrink_from_bottomright_to_topleft.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="1.0" android:toXScale="0.3"
- android:fromYScale="1.0" android:toYScale="0.3"
- android:pivotX="0%" android:pivotY="0%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/accelerate_interpolator"
- android:fromAlpha="1.0" android:toAlpha="0.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
diff --git a/sl4a/QuickAction/res/anim/shrink_from_top.xml b/sl4a/QuickAction/res/anim/shrink_from_top.xml
deleted file mode 100644
index 91596e2..0000000
--- a/sl4a/QuickAction/res/anim/shrink_from_top.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="1.0" android:toXScale="0.3"
- android:fromYScale="1.0" android:toYScale="0.3"
- android:pivotX="50%" android:pivotY="100%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/accelerate_interpolator"
- android:fromAlpha="1.0" android:toAlpha="0.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
diff --git a/sl4a/QuickAction/res/anim/shrink_from_topleft_to_bottomright.xml b/sl4a/QuickAction/res/anim/shrink_from_topleft_to_bottomright.xml
deleted file mode 100644
index 4ce1cd2..0000000
--- a/sl4a/QuickAction/res/anim/shrink_from_topleft_to_bottomright.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="1.0" android:toXScale="0.3"
- android:fromYScale="1.0" android:toYScale="0.3"
- android:pivotX="100%" android:pivotY="100%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/accelerate_interpolator"
- android:fromAlpha="1.0" android:toAlpha="0.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/anim/shrink_from_topright_to_bottomleft.xml b/sl4a/QuickAction/res/anim/shrink_from_topright_to_bottomleft.xml
deleted file mode 100644
index d68c568..0000000
--- a/sl4a/QuickAction/res/anim/shrink_from_topright_to_bottomleft.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<set xmlns:android="http://schemas.android.com/apk/res/android">
- <scale
- android:fromXScale="1.0" android:toXScale="0.3"
- android:fromYScale="1.0" android:toYScale="0.3"
- android:pivotX="0%" android:pivotY="100%"
- android:duration="@android:integer/config_shortAnimTime"
- />
- <alpha
- android:interpolator="@android:anim/accelerate_interpolator"
- android:fromAlpha="1.0" android:toAlpha="0.0"
- android:duration="@android:integer/config_shortAnimTime"
- />
-</set>
diff --git a/sl4a/QuickAction/res/drawable-finger/quickcontact_slider_btn.xml b/sl4a/QuickAction/res/drawable-finger/quickcontact_slider_btn.xml
deleted file mode 100644
index 41693b4..0000000
--- a/sl4a/QuickAction/res/drawable-finger/quickcontact_slider_btn.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
- android:dither="true">
-
- <item android:state_checked="true"
- android:drawable="@drawable/quickcontact_slider_btn_on" />
- <item android:state_window_focused="false"
- android:drawable="@drawable/quickcontact_slider_btn_normal" />
- <item android:state_pressed="true"
- android:drawable="@drawable/quickcontact_slider_btn_pressed" />
- <item android:state_focused="true"
- android:drawable="@drawable/quickcontact_slider_btn_selected" />
- <item
- android:drawable="@drawable/quickcontact_slider_btn_normal" />
-
-</selector>
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_arrow_down.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_arrow_down.png
deleted file mode 100644
index 7eba756..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_arrow_down.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_arrow_up.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_arrow_up.png
deleted file mode 100644
index 6daf90a..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_arrow_up.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_bottom_frame.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_bottom_frame.9.png
deleted file mode 100644
index 9fac225..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_bottom_frame.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_disambig_bottom_bg.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_disambig_bottom_bg.9.png
deleted file mode 100644
index 4702f16..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_disambig_bottom_bg.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_disambig_divider.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_disambig_divider.9.png
deleted file mode 100644
index 8c35e8c..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_disambig_divider.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_drop_shadow.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_drop_shadow.9.png
deleted file mode 100644
index 0dcf076..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_drop_shadow.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_photo_frame.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_photo_frame.9.png
deleted file mode 100644
index 990c75d..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_photo_frame.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_background.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_background.png
deleted file mode 100644
index c9c09ee..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_background.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_normal.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_normal.9.png
deleted file mode 100644
index 9d3d7ad..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_normal.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_on.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_on.9.png
deleted file mode 100644
index ac2b496..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_on.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_pressed.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_pressed.9.png
deleted file mode 100644
index d9da598..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_selected.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_selected.9.png
deleted file mode 100644
index 72d053b..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_btn_selected.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_grip_left.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_grip_left.png
deleted file mode 100644
index 97f12aa..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_grip_left.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_grip_right.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_grip_right.png
deleted file mode 100644
index e410059..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_slider_grip_right.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_top_frame.9.png b/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_top_frame.9.png
deleted file mode 100644
index 4556bb2..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/quickcontact_top_frame.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/sym_action_add.png b/sl4a/QuickAction/res/drawable-hdpi-finger/sym_action_add.png
deleted file mode 100644
index 45a9ec5..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/sym_action_add.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-hdpi-finger/sym_action_map.png b/sl4a/QuickAction/res/drawable-hdpi-finger/sym_action_map.png
deleted file mode 100644
index cf00c7b..0000000
--- a/sl4a/QuickAction/res/drawable-hdpi-finger/sym_action_map.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-ldpi/icon.png b/sl4a/QuickAction/res/drawable-ldpi/icon.png
deleted file mode 100644
index 1095584..0000000
--- a/sl4a/QuickAction/res/drawable-ldpi/icon.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_arrow_down.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_arrow_down.png
deleted file mode 100644
index 3ba6c8c..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_arrow_down.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_arrow_up.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_arrow_up.png
deleted file mode 100644
index 1a6fa2e..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_arrow_up.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_bottom_frame.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_bottom_frame.9.png
deleted file mode 100644
index 6f84306..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_bottom_frame.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_disambig_bottom_bg.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_disambig_bottom_bg.9.png
deleted file mode 100644
index bbc2075..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_disambig_bottom_bg.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_disambig_divider.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_disambig_divider.9.png
deleted file mode 100644
index 8c35e8c..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_disambig_divider.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_drop_shadow.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_drop_shadow.9.png
deleted file mode 100644
index 2d20076..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_drop_shadow.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_photo_frame.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_photo_frame.9.png
deleted file mode 100644
index a509c30..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_photo_frame.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_background.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_background.png
deleted file mode 100644
index b6a9f91..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_background.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_normal.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_normal.9.png
deleted file mode 100644
index cf4f1e4..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_normal.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_on.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_on.9.png
deleted file mode 100644
index 330f49b..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_on.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_pressed.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_pressed.9.png
deleted file mode 100644
index d4916f5..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_selected.9.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_selected.9.png
deleted file mode 100644
index b910028..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_btn_selected.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_grip_left.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_grip_left.png
deleted file mode 100644
index 337b2fc..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_grip_left.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_grip_right.png b/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_grip_right.png
deleted file mode 100644
index 1e222c3..0000000
--- a/sl4a/QuickAction/res/drawable-mdpi-finger/quickcontact_slider_grip_right.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable/action_item_selected.9.png b/sl4a/QuickAction/res/drawable/action_item_selected.9.png
deleted file mode 100644
index de41f40..0000000
--- a/sl4a/QuickAction/res/drawable/action_item_selected.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable/popup.9.png b/sl4a/QuickAction/res/drawable/popup.9.png
deleted file mode 100644
index b9380ba..0000000
--- a/sl4a/QuickAction/res/drawable/popup.9.png
+++ /dev/null
Binary files differ
diff --git a/sl4a/QuickAction/res/drawable/quickcontact_slider_btn.xml b/sl4a/QuickAction/res/drawable/quickcontact_slider_btn.xml
deleted file mode 100644
index 5aca7bc..0000000
--- a/sl4a/QuickAction/res/drawable/quickcontact_slider_btn.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
- android:dither="true">
-
- <item android:state_checked="true"
- android:drawable="@drawable/quickcontact_slider_btn_on" />
- <item android:state_window_focused="false"
- android:drawable="@drawable/quickcontact_slider_btn_normal" />
- <item android:state_pressed="true"
- android:drawable="@drawable/quickcontact_slider_btn_pressed" />
- <item android:state_focused="true"
- android:drawable="@drawable/quickcontact_slider_btn_selected" />
- <item
- android:drawable="@drawable/quickcontact_slider_btn_normal" />
-
-</selector>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/layout/action_item.xml b/sl4a/QuickAction/res/layout/action_item.xml
deleted file mode 100644
index ec76f9f..0000000
--- a/sl4a/QuickAction/res/layout/action_item.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingLeft="10dip"
- android:paddingRight="10dip"
- android:gravity="center"
- android:clickable="true"
- android:background="@drawable/quickcontact_slider_btn">
-
- <ImageView
- android:id="@+id/icon"
- android:layout_width="30dip"
- android:layout_height="30dip"/>
-
- <TextView
- android:id="@+id/title"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:gravity="center_vertical"
- android:textSize="11sp"
- android:textColor="#666"/>
-</LinearLayout>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/layout/quickaction.xml b/sl4a/QuickAction/res/layout/quickaction.xml
deleted file mode 100644
index 28256cb..0000000
--- a/sl4a/QuickAction/res/layout/quickaction.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
-
- <FrameLayout
- android:layout_marginTop="10dip"
- android:id="@+id/header2"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/quickcontact_top_frame"/>
-
- <ImageView
- android:id="@+id/arrow_up"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/quickcontact_arrow_up" />
-
- <HorizontalScrollView
- android:id="@+id/scroll"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:fadingEdgeLength="0dip"
- android:layout_below="@id/header2"
- android:background="@drawable/quickcontact_slider_background"
- android:scrollbars="none">
-
- <LinearLayout
- android:id="@+id/tracks"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="4dip"
- android:paddingBottom="4dip"
- android:orientation="horizontal">
-
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/quickcontact_slider_grip_left" />
-
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/quickcontact_slider_grip_right" />
-
- </LinearLayout>
-
- </HorizontalScrollView>
-
- <FrameLayout
- android:id="@+id/footer"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/scroll"
- android:background="@drawable/quickcontact_bottom_frame" />
-
- <ImageView
- android:id="@+id/arrow_down"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="-1dip"
- android:layout_below="@id/footer"
- android:src="@drawable/quickcontact_arrow_down" />
-
-</RelativeLayout>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/values/strings.xml b/sl4a/QuickAction/res/values/strings.xml
deleted file mode 100644
index edec82d..0000000
--- a/sl4a/QuickAction/res/values/strings.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<resources>
- <string name="app_name">QuickActions Demo</string>
-</resources>
\ No newline at end of file
diff --git a/sl4a/QuickAction/res/values/styles.xml b/sl4a/QuickAction/res/values/styles.xml
deleted file mode 100644
index 3d13e04..0000000
--- a/sl4a/QuickAction/res/values/styles.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2015, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<resources>
- <style name="Animations" />
-
- <!-- PopDownMenu -->
- <style name="Animations.PopDownMenu" />
-
- <style name="Animations.PopDownMenu.Left">
- <item name="android:windowEnterAnimation">@anim/grow_from_topleft_to_bottomright</item>
- <item name="android:windowExitAnimation">@anim/shrink_from_bottomright_to_topleft</item>
- </style>
-
- <style name="Animations.PopDownMenu.Right">
- <item name="android:windowEnterAnimation">@anim/grow_from_topright_to_bottomleft</item>
- <item name="android:windowExitAnimation">@anim/shrink_from_bottomleft_to_topright</item>
- </style>
-
- <style name="Animations.PopDownMenu.Center">
- <item name="android:windowEnterAnimation">@anim/grow_from_top</item>
- <item name="android:windowExitAnimation">@anim/shrink_from_bottom</item>
- </style>
- <!-- PopUpMenu -->
- <style name="Animations.PopUpMenu" />
-
- <style name="Animations.PopUpMenu.Left">
- <item name="android:windowEnterAnimation">@anim/grow_from_bottomleft_to_topright</item>
- <item name="android:windowExitAnimation">@anim/shrink_from_topright_to_bottomleft</item>
- </style>
-
- <style name="Animations.PopUpMenu.Right">
- <item name="android:windowEnterAnimation">@anim/grow_from_bottomright_to_topleft</item>
- <item name="android:windowExitAnimation">@anim/shrink_from_topleft_to_bottomright</item>
- </style>
-
- <style name="Animations.PopUpMenu.Center">
- <item name="android:windowEnterAnimation">@anim/grow_from_bottom</item>
- <item name="android:windowExitAnimation">@anim/shrink_from_top</item>
- </style>
-</resources>
\ No newline at end of file
diff --git a/sl4a/QuickAction/src/net/londatiga/android/ActionItem.java b/sl4a/QuickAction/src/net/londatiga/android/ActionItem.java
deleted file mode 100644
index ceca178..0000000
--- a/sl4a/QuickAction/src/net/londatiga/android/ActionItem.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package net.londatiga.android;
-
-import android.graphics.drawable.Drawable;
-import android.view.View;
-import android.view.View.OnClickListener;
-
-/**
- * Action item, displayed as menu with icon and text.
- *
- * @author Lorensius. W. L. T
- *
- */
-public class ActionItem {
- private Drawable icon;
- private String title;
- private OnClickListener listener;
-
- /**
- * Constructor
- */
- public ActionItem() {
- }
-
- /**
- * Constructor
- *
- * @param icon {@link Drawable} action icon
- */
- public ActionItem(Drawable icon) {
- this.icon = icon;
- }
-
- /**
- * Set action title
- *
- * @param title action title
- */
- public void setTitle(String title) {
- this.title = title;
- }
-
- /**
- * Get action title
- *
- * @return action title
- */
- public String getTitle() {
- return this.title;
- }
-
- /**
- * Set action icon
- *
- * @param icon {@link Drawable} action icon
- */
- public void setIcon(Drawable icon) {
- this.icon = icon;
- }
-
- /**
- * Get action icon
- *
- * @return {@link Drawable} action icon
- */
- public Drawable getIcon() {
- return this.icon;
- }
-
- /**
- * Set on click listener
- *
- * @param listener on click listener {@link View.OnClickListener}
- */
- public void setOnClickListener(OnClickListener listener) {
- this.listener = listener;
- }
-
- /**
- * Get on click listener
- *
- * @return on click listener {@link View.OnClickListener}
- */
- public OnClickListener getListener() {
- return this.listener;
- }
-}
diff --git a/sl4a/QuickAction/src/net/londatiga/android/CustomPopupWindow.java b/sl4a/QuickAction/src/net/londatiga/android/CustomPopupWindow.java
deleted file mode 100644
index 5bd3a14..0000000
--- a/sl4a/QuickAction/src/net/londatiga/android/CustomPopupWindow.java
+++ /dev/null
@@ -1,206 +0,0 @@
-package net.londatiga.android;
-
-import android.content.Context;
-import android.graphics.Rect;
-import android.graphics.drawable.BitmapDrawable;
-import android.graphics.drawable.Drawable;
-import android.view.Gravity;
-import android.view.LayoutInflater;
-import android.view.MotionEvent;
-import android.view.View;
-import android.view.WindowManager;
-import android.view.View.OnTouchListener;
-import android.view.ViewGroup.LayoutParams;
-import android.widget.PopupWindow;
-
-/**
- * This class does most of the work of wrapping the {@link PopupWindow} so it's
- * simpler to use. Edited by Lorensius. W. L. T
- *
- * @author qberticus
- *
- */
-public class CustomPopupWindow {
- protected final View anchor;
- protected final PopupWindow window;
- private View root;
- private Drawable background = null;
- protected final WindowManager windowManager;
-
- /**
- * Create a QuickAction
- *
- * @param anchor the view that the QuickAction will be displaying 'from'
- */
- public CustomPopupWindow(View anchor) {
- this.anchor = anchor;
- this.window = new PopupWindow(anchor.getContext());
-
- // when a touch even happens outside of the window
- // make the window go away
- window.setTouchInterceptor(new OnTouchListener() {
- @Override
- public boolean onTouch(View v, MotionEvent event) {
- if (event.getAction() == MotionEvent.ACTION_OUTSIDE) {
- CustomPopupWindow.this.window.dismiss();
-
- return true;
- }
-
- return false;
- }
- });
-
- windowManager = (WindowManager) anchor.getContext().getSystemService(Context.WINDOW_SERVICE);
-
- onCreate();
- }
-
- /**
- * Anything you want to have happen when created. Probably should create a
- * view and setup the event listeners on child views.
- */
- protected void onCreate() {
- }
-
- /**
- * In case there is stuff to do right before displaying.
- */
- protected void onShow() {
- }
-
- protected void preShow() {
- if (root == null) {
- throw new IllegalStateException("setContentView was not called with a view to display.");
- }
-
- onShow();
-
- if (background == null) {
- window.setBackgroundDrawable(new BitmapDrawable());
- } else {
- window.setBackgroundDrawable(background);
- }
-
- // if using PopupWindow#setBackgroundDrawable this is the only values of the
- // width and hight that make it work
- // otherwise you need to set the background of the root viewgroup
- // and set the popupwindow background to an empty BitmapDrawable
-
- window.setWidth(WindowManager.LayoutParams.WRAP_CONTENT);
- window.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
- window.setTouchable(true);
- window.setFocusable(true);
- window.setOutsideTouchable(true);
-
- window.setContentView(root);
- }
-
- public void setBackgroundDrawable(Drawable background) {
- this.background = background;
- }
-
- /**
- * Sets the content view. Probably should be called from {@link onCreate}
- *
- * @param root the view the popup will display
- */
- public void setContentView(View root) {
- this.root = root;
-
- window.setContentView(root);
- }
-
- /**
- * Will inflate and set the view from a resource id
- *
- * @param layoutResID
- */
- public void setContentView(int layoutResID) {
- LayoutInflater inflator =
- (LayoutInflater) anchor.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
-
- setContentView(inflator.inflate(layoutResID, null));
- }
-
- /**
- * If you want to do anything when {@link dismiss} is called
- *
- * @param listener
- */
- public void setOnDismissListener(PopupWindow.OnDismissListener listener) {
- window.setOnDismissListener(listener);
- }
-
- /**
- * Displays like a popdown menu from the anchor view
- */
- public void showDropDown() {
- showDropDown(0, 0);
- }
-
- /**
- * Displays like a popdown menu from the anchor view.
- *
- * @param xOffset offset in X direction
- * @param yOffset offset in Y direction
- */
- public void showDropDown(int xOffset, int yOffset) {
- preShow();
-
- window.setAnimationStyle(R.style.Animations_PopDownMenu_Left);
-
- window.showAsDropDown(anchor, xOffset, yOffset);
- }
-
- /**
- * Displays like a QuickAction from the anchor view.
- */
- public void showLikeQuickAction() {
- showLikeQuickAction(0, 0);
- }
-
- /**
- * Displays like a QuickAction from the anchor view.
- *
- * @param xOffset offset in the X direction
- * @param yOffset offset in the Y direction
- */
- public void showLikeQuickAction(int xOffset, int yOffset) {
- preShow();
-
- window.setAnimationStyle(R.style.Animations_PopUpMenu_Center);
-
- int[] location = new int[2];
- anchor.getLocationOnScreen(location);
-
- Rect anchorRect =
- new Rect(location[0], location[1], location[0] + anchor.getWidth(), location[1]
- + anchor.getHeight());
-
- root.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
- root.measure(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
-
- int rootWidth = root.getMeasuredWidth();
- int rootHeight = root.getMeasuredHeight();
-
- int screenWidth = windowManager.getDefaultDisplay().getWidth();
- // int screenHeight = windowManager.getDefaultDisplay().getHeight();
-
- int xPos = ((screenWidth - rootWidth) / 2) + xOffset;
- int yPos = anchorRect.top - rootHeight + yOffset;
-
- // display on bottom
- if (rootHeight > anchorRect.top) {
- yPos = anchorRect.bottom + yOffset;
-
- window.setAnimationStyle(R.style.Animations_PopDownMenu_Center);
- }
-
- window.showAtLocation(anchor, Gravity.NO_GRAVITY, xPos, yPos);
- }
-
- public void dismiss() {
- window.dismiss();
- }
-}
diff --git a/sl4a/QuickAction/src/net/londatiga/android/QuickAction.java b/sl4a/QuickAction/src/net/londatiga/android/QuickAction.java
deleted file mode 100644
index 831ae02..0000000
--- a/sl4a/QuickAction/src/net/londatiga/android/QuickAction.java
+++ /dev/null
@@ -1,296 +0,0 @@
-package net.londatiga.android;
-
-import android.content.Context;
-import android.graphics.Point;
-import android.graphics.Rect;
-import android.graphics.drawable.Drawable;
-import android.view.Gravity;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.view.View.OnClickListener;
-import android.view.ViewGroup.LayoutParams;
-import android.view.animation.Animation;
-import android.view.animation.AnimationUtils;
-import android.view.animation.Interpolator;
-import android.widget.ImageView;
-import android.widget.LinearLayout;
-import android.widget.TextView;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-/**
- * Popup window, shows action list as icon and text (QuickContact / Twitter app).
- *
- * @author Lorensius. W. T
- */
-public class QuickAction extends CustomPopupWindow {
- private final View mRoot;
- private final ImageView mArrowUp;
- private final ImageView mArrowDown;
- private final Animation mTrackAnim;
- private final LayoutInflater mInflater;
- private final Context mContext;
-
- public static final int ANIM_GROW_FROM_LEFT = 1;
- public static final int ANIM_GROW_FROM_RIGHT = 2;
- public static final int ANIM_GROW_FROM_CENTER = 3;
- public static final int ANIM_AUTO = 4;
-
- private int mAnimStyle;
- private boolean mAnimateTrack;
- private ViewGroup mTrack;
- private List<ActionItem> mActionList;
-
- /**
- * Constructor
- *
- * @param anchor
- * {@link View} on where the popup should be displayed
- */
- public QuickAction(View anchor) {
- super(anchor);
-
- mActionList = new ArrayList<ActionItem>();
- mContext = anchor.getContext();
- mInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
-
- mRoot = mInflater.inflate(R.layout.quickaction, null);
-
- mArrowDown = (ImageView) mRoot.findViewById(R.id.arrow_down);
- mArrowUp = (ImageView) mRoot.findViewById(R.id.arrow_up);
-
- setContentView(mRoot);
-
- mTrackAnim = AnimationUtils.loadAnimation(anchor.getContext(), R.anim.rail);
-
- mTrackAnim.setInterpolator(new Interpolator() {
- public float getInterpolation(float t) {
- // Pushes past the target area, then snaps back into place.
- // Equation for graphing: 1.2-((x*1.6)-1.1)^2
- final float inner = (t * 1.55f) - 1.1f;
-
- return 1.2f - inner * inner;
- }
- });
-
- mTrack = (ViewGroup) mRoot.findViewById(R.id.tracks);
- mAnimStyle = ANIM_AUTO;
- mAnimateTrack = true;
- }
-
- /**
- * Animate track
- *
- * @param animateTrack
- * flag to animate track
- */
- public void animateTrack(boolean animateTrack) {
- this.mAnimateTrack = animateTrack;
- }
-
- /**
- * Set animation style
- *
- * @param animStyle
- * animation style, default is set to ANIM_AUTO
- */
- public void setAnimStyle(int animStyle) {
- this.mAnimStyle = animStyle;
- }
-
- /**
- * Add action item
- *
- * @param action
- * {@link ActionItem}
- */
- public void addActionItem(ActionItem action) {
- mActionList.add(action);
- }
-
- public void addActionItems(ActionItem... actions) {
- mActionList.addAll(Arrays.asList(actions));
- }
-
- /**
- * Show popup window
- */
- public void show() {
- preShow();
-
- int[] location = new int[2];
-
- anchor.getLocationOnScreen(location);
-
- Rect anchorRect =
- new Rect(location[0], location[1], location[0] + anchor.getWidth(), location[1]
- + anchor.getHeight());
-
- mRoot.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
- mRoot.measure(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
-
- int rootWidth = mRoot.getMeasuredWidth();
- int rootHeight = mRoot.getMeasuredHeight();
-
- Point size = new Point();
- windowManager.getDefaultDisplay().getSize(size);
- int screenWidth = size.x;
- // int screenHeight = windowManager.getDefaultDisplay().getHeight();
-
- int xPos = (screenWidth - rootWidth) / 2;
- int yPos = anchorRect.top - rootHeight + anchor.getPaddingTop();
-
- boolean onTop = true;
-
- // display on bottom
- if (rootHeight > anchorRect.top) {
- yPos = anchorRect.bottom;
- onTop = false;
- }
-
- showArrow(((onTop) ? R.id.arrow_down : R.id.arrow_up), anchorRect.centerX() / 2);
-
- setAnimationStyle(screenWidth, anchorRect.centerX(), onTop);
-
- createActionList();
-
- window.showAtLocation(anchor, Gravity.NO_GRAVITY, xPos, yPos);
-
- if (mAnimateTrack) {
- mTrack.startAnimation(mTrackAnim);
- }
- }
-
- /**
- * Set animation style
- *
- * @param screenWidth
- * Screen width
- * @param requestedX
- * distance from left screen
- * @param onTop
- * flag to indicate where the popup should be displayed. Set TRUE if displayed on top of
- * anchor and vice versa
- */
- private void setAnimationStyle(int screenWidth, int requestedX, boolean onTop) {
- int arrowPos = requestedX - mArrowUp.getMeasuredWidth() / 2;
-
- switch (mAnimStyle) {
- case ANIM_GROW_FROM_LEFT:
- window.setAnimationStyle((onTop) ? R.style.Animations_PopUpMenu_Left
- : R.style.Animations_PopDownMenu_Left);
- break;
-
- case ANIM_GROW_FROM_RIGHT:
- window.setAnimationStyle((onTop) ? R.style.Animations_PopUpMenu_Right
- : R.style.Animations_PopDownMenu_Right);
- break;
-
- case ANIM_GROW_FROM_CENTER:
- window.setAnimationStyle((onTop) ? R.style.Animations_PopUpMenu_Center
- : R.style.Animations_PopDownMenu_Center);
- break;
-
- case ANIM_AUTO:
- if (arrowPos <= screenWidth / 4) {
- window.setAnimationStyle((onTop) ? R.style.Animations_PopUpMenu_Left
- : R.style.Animations_PopDownMenu_Left);
- } else if (arrowPos > screenWidth / 4 && arrowPos < 3 * (screenWidth / 4)) {
- window.setAnimationStyle((onTop) ? R.style.Animations_PopUpMenu_Center
- : R.style.Animations_PopDownMenu_Center);
- } else {
- window.setAnimationStyle((onTop) ? R.style.Animations_PopDownMenu_Right
- : R.style.Animations_PopDownMenu_Right);
- }
-
- break;
- }
- }
-
- /**
- * Create action list
- *
- */
- private void createActionList() {
- View view;
- String title;
- Drawable icon;
- OnClickListener listener;
- int index = 1;
-
- for (int i = 0; i < mActionList.size(); i++) {
- title = mActionList.get(i).getTitle();
- icon = mActionList.get(i).getIcon();
- listener = mActionList.get(i).getListener();
-
- view = getActionItem(title, icon, listener);
-
- view.setFocusable(true);
- view.setClickable(true);
- mTrack.addView(view, index);
-
- index++;
- }
- }
-
- /**
- * Get action item {@link View}
- *
- * @param title
- * action item titleintent
- * @param icon
- * {@link Drawable} action item icon
- * @param listener
- * {@link View.OnClickListener} action item listener
- * @return action item {@link View}
- */
- private View getActionItem(String title, Drawable icon, OnClickListener listener) {
- LinearLayout container = (LinearLayout) mInflater.inflate(R.layout.action_item, null);
- ImageView img = (ImageView) container.findViewById(R.id.icon);
- TextView text = (TextView) container.findViewById(R.id.title);
-
- if (icon != null) {
- img.setImageDrawable(icon);
- } else {
- img.setVisibility(View.GONE);
- }
-
- if (title != null) {
- text.setText(title);
- } else {
- text.setVisibility(View.GONE);
- }
-
- if (listener != null) {
- container.setOnClickListener(listener);
- }
-
- return container;
- }
-
- /**
- * Show arrow
- *
- * @param whichArrow
- * arrow type resource id
- * @param requestedX
- * distance from left screen
- */
- private void showArrow(int whichArrow, int requestedX) {
- final View showArrow = (whichArrow == R.id.arrow_up) ? mArrowUp : mArrowDown;
- final View hideArrow = (whichArrow == R.id.arrow_up) ? mArrowDown : mArrowUp;
-
- final int arrowWidth = mArrowUp.getMeasuredWidth();
-
- showArrow.setVisibility(View.VISIBLE);
-
- ViewGroup.MarginLayoutParams param = (ViewGroup.MarginLayoutParams) showArrow.getLayoutParams();
-
- param.leftMargin = requestedX - arrowWidth / 2;
-
- hideArrow.setVisibility(View.INVISIBLE);
- }
-}
diff --git a/sl4a/ScriptingLayerForAndroid/Android.mk b/sl4a/ScriptingLayerForAndroid/Android.mk
index 550a6e7..46ebe79 100644
--- a/sl4a/ScriptingLayerForAndroid/Android.mk
+++ b/sl4a/ScriptingLayerForAndroid/Android.mk
@@ -39,7 +39,7 @@
LOCAL_STATIC_JAVA_LIBRARIES := guava android-common locale_platform android-support-v4
LOCAL_STATIC_JAVA_LIBRARIES += sl4a.Utils sl4a.Common
-LOCAL_STATIC_JAVA_LIBRARIES += sl4a.InterpreterForAndroid sl4a.ScriptingLayer sl4a.QuickAction
+LOCAL_STATIC_JAVA_LIBRARIES += sl4a.InterpreterForAndroid sl4a.ScriptingLayer
LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_ENABLED := disabled
diff --git a/sl4a/ScriptingLayerForAndroid/README b/sl4a/ScriptingLayerForAndroid/README
deleted file mode 100644
index 1444d7d..0000000
--- a/sl4a/ScriptingLayerForAndroid/README
+++ /dev/null
@@ -1,23 +0,0 @@
-In order to build ScriptingLayerForAndroid:
-
-You need to create a classpath variable ANDROID_SDK to point to the SDK folder.
-Window-->Preferences-->Java-->Build Path-->Classpath Variables
-
-(ie, Name: ANDROID_SDK Path: C:/Program Files (x86)/Android/android-sdk )
-(The location of your SDK will vary.)
-
-To rebuild the documentation, you should also set the classpath variable JDK to point to the Java development kit
-(ie: Name: JDK Path: C:/Program Files/Java/jdk1.6.0_24)
-
-Project-->Clean-->All (this may need to be run several times)
-
-Common Problems:
-QuickAction is a library. Sometimes different versions of the eclipse or the ADT will have difficulty finding it.
-A common symptom is a DalvikVM error when you attempt to build or deploy.
-
-To fix:
-Right click on ScriptingLayerForAndroid-->Build Path-->Configure Build Path-->Android
-Down the bottom of the screen is a reference list. Remove the reference to QuickAction (if it exists) then:
-Add-->QuickAction.
-
-Then Project Clean to make sure the change is picked up.
\ No newline at end of file
diff --git a/sl4a/ScriptingLayerForAndroid/local.properties b/sl4a/ScriptingLayerForAndroid/local.properties
deleted file mode 100644
index 03c842d..0000000
--- a/sl4a/ScriptingLayerForAndroid/local.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must *NOT* be checked into Version Control Systems,
-# as it contains information specific to your local configuration.
-
-# location of the SDK. This is only used by Ant
-# For customization when using a Version Control System, please read the
-# header note.
-sdk.dir=/usr/local/google/home/angli/android-sdks
diff --git a/sl4a/ScriptingLayerForAndroid/project.properties b/sl4a/ScriptingLayerForAndroid/project.properties
deleted file mode 100644
index cfa48f2..0000000
--- a/sl4a/ScriptingLayerForAndroid/project.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-
-# Indicates whether an apk should be generated for each density.
-split.density=false
-# Project target.
-target=android-19
-apk-configurations=
-android.library.reference.1=../QuickAction
diff --git a/sl4a/ScriptingLayerForAndroid/res/xml/preferences.xml b/sl4a/ScriptingLayerForAndroid/res/xml/preferences.xml
index 2947926..9d49d7b 100644
--- a/sl4a/ScriptingLayerForAndroid/res/xml/preferences.xml
+++ b/sl4a/ScriptingLayerForAndroid/res/xml/preferences.xml
@@ -29,7 +29,6 @@
android:key="show_all_files"
android:title="Show all files"
android:defaultValue="false" />
- <CheckBoxPreference android:defaultValue="true" android:key="use_quick_menu" android:title="Use QuickActions Menu"></CheckBoxPreference>
</PreferenceCategory>
<PreferenceCategory
android:title="Script Editor">
diff --git a/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptManager.java b/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptManager.java
index f37eb39..40faa57 100644
--- a/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptManager.java
+++ b/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptManager.java
@@ -68,9 +68,6 @@
import java.util.List;
import java.util.Map.Entry;
-import net.londatiga.android.ActionItem;
-import net.londatiga.android.QuickAction;
-
/**
* Manages creation, deletion, and execution of stored scripts.
*
@@ -374,82 +371,8 @@
mAdapter.notifyDataSetInvalidated();
return;
}
- if (FacadeConfiguration.getSdkLevel() <= 3 || !mPreferences.getBoolean("use_quick_menu", true)) {
- doDialogMenu();
- return;
- }
-
- final QuickAction actionMenu = new QuickAction(view);
-
- ActionItem terminal = new ActionItem();
- terminal.setIcon(getResources().getDrawable(R.drawable.terminal));
- terminal.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent intent = new Intent(ScriptManager.this, ScriptingLayerService.class);
- intent.setAction(Constants.ACTION_LAUNCH_FOREGROUND_SCRIPT);
- intent.putExtra(Constants.EXTRA_SCRIPT_PATH, file.getPath());
- startService(intent);
- dismissQuickActions(actionMenu);
- }
- });
-
- final ActionItem background = new ActionItem();
- background.setIcon(getResources().getDrawable(R.drawable.background));
- background.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent intent = new Intent(ScriptManager.this, ScriptingLayerService.class);
- intent.setAction(Constants.ACTION_LAUNCH_BACKGROUND_SCRIPT);
- intent.putExtra(Constants.EXTRA_SCRIPT_PATH, file.getPath());
- startService(intent);
- dismissQuickActions(actionMenu);
- }
- });
-
- final ActionItem edit = new ActionItem();
- edit.setIcon(getResources().getDrawable(android.R.drawable.ic_menu_edit));
- edit.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- editScript(file);
- dismissQuickActions(actionMenu);
- }
- });
-
- final ActionItem delete = new ActionItem();
- delete.setIcon(getResources().getDrawable(android.R.drawable.ic_menu_delete));
- delete.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- delete(file);
- dismissQuickActions(actionMenu);
- }
- });
-
- final ActionItem rename = new ActionItem();
- rename.setIcon(getResources().getDrawable(android.R.drawable.ic_menu_save));
- rename.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- rename(file);
- dismissQuickActions(actionMenu);
- }
- });
-
- final ActionItem external = new ActionItem();
- external.setIcon(getResources().getDrawable(android.R.drawable.ic_menu_directions));
- external.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- externalEditor(file);
- dismissQuickActions(actionMenu);
- }
- });
-
- actionMenu.addActionItems(terminal, background, edit, rename, delete, external);
- actionMenu.setAnimStyle(QuickAction.ANIM_GROW_FROM_CENTER);
- actionMenu.show();
+ doDialogMenu();
+ return;
}
// Quickedit chokes on sdk 3 or below, and some Android builds. Provides alternative menu.
@@ -505,16 +428,6 @@
}
}
- private void dismissQuickActions(final QuickAction action) {
- // HACK(damonkohler): Delay the dismissal to avoid an otherwise noticeable flicker.
- mHandler.postDelayed(new Runnable() {
- @Override
- public void run() {
- action.dismiss();
- }
- }, 1);
- }
-
/**
* Opens the script for editing.
*
diff --git a/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptPicker.java b/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptPicker.java
index f022983..008a643 100644
--- a/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptPicker.java
+++ b/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ScriptPicker.java
@@ -39,8 +39,6 @@
import java.io.File;
import java.util.List;
-import net.londatiga.android.ActionItem;
-import net.londatiga.android.QuickAction;
/**
* Presents available scripts and returns the selected one.
@@ -77,92 +75,7 @@
return;
}
- QuickAction actionMenu = new QuickAction(view);
- ActionItem terminal = new ActionItem();
- terminal.setIcon(getResources().getDrawable(R.drawable.terminal));
- ActionItem background = new ActionItem();
- background.setIcon(getResources().getDrawable(R.drawable.background));
-
- actionMenu.addActionItems(terminal, background);
-
- if (Intent.ACTION_PICK.equals(getIntent().getAction())) {
- terminal.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent intent = IntentBuilders.buildStartInTerminalIntent(script);
- setResult(RESULT_OK, intent);
- finish();
- }
- });
-
- background.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent intent = IntentBuilders.buildStartInBackgroundIntent(script);
- setResult(RESULT_OK, intent);
- finish();
- }
- });
- } else if (Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction())) {
- int icon = FeaturedInterpreters.getInterpreterIcon(ScriptPicker.this, script.getName());
- if (icon == 0) {
- icon = R.drawable.sl4a_logo_48;
- }
-
- final Parcelable iconResource =
- Intent.ShortcutIconResource.fromContext(ScriptPicker.this, icon);
-
- terminal.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent intent = IntentBuilders.buildTerminalShortcutIntent(script, iconResource);
- setResult(RESULT_OK, intent);
- finish();
- }
- });
-
- background.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent intent = IntentBuilders.buildBackgroundShortcutIntent(script, iconResource);
- setResult(RESULT_OK, intent);
- finish();
- }
- });
- } else if (com.twofortyfouram.locale.platform.Intent.ACTION_EDIT_SETTING.equals(getIntent()
- .getAction())) {
- final Intent intent = new Intent();
- final Bundle storeAndForwardExtras = new Bundle();
- storeAndForwardExtras.putString(Constants.EXTRA_SCRIPT_PATH, script.getPath());
-
- intent.putExtra(com.twofortyfouram.locale.platform.Intent.EXTRA_STRING_BLURB,
- script.getName());
-
- terminal.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- storeAndForwardExtras.putBoolean(Constants.EXTRA_LAUNCH_IN_BACKGROUND, false);
- intent.putExtra(com.twofortyfouram.locale.platform.Intent.EXTRA_BUNDLE,
- storeAndForwardExtras);
- setResult(RESULT_OK, intent);
- finish();
- }
- });
-
- background.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- storeAndForwardExtras.putBoolean(Constants.EXTRA_LAUNCH_IN_BACKGROUND, true);
- intent.putExtra(com.twofortyfouram.locale.platform.Intent.EXTRA_BUNDLE,
- storeAndForwardExtras);
- setResult(RESULT_OK, intent);
- finish();
- }
- });
- }
-
- actionMenu.setAnimStyle(QuickAction.ANIM_GROW_FROM_CENTER);
- actionMenu.show();
+ //TODO: Take action here based on item click
}
private class ScriptListObserver extends DataSetObserver {