|
1 | 1 | package org.programus.android.floatings.services; |
2 | 2 |
|
3 | | -import java.lang.reflect.InvocationTargetException; |
4 | | -import java.lang.reflect.Method; |
5 | | - |
6 | | -import org.programus.android.floatings.Constants; |
7 | | -import org.programus.android.floatings.R; |
8 | | -import org.programus.android.floatings.SettingsActivity; |
9 | | -import org.programus.android.floatings.activities.DialogActivity; |
10 | | -import org.programus.android.floatings.services.core.FloatingService; |
11 | | - |
12 | 3 | import android.annotation.SuppressLint; |
13 | 4 | import android.app.admin.DevicePolicyManager; |
14 | 5 | import android.content.ClipData; |
|
41 | 32 | import android.widget.ImageView; |
42 | 33 | import android.widget.TextView; |
43 | 34 |
|
| 35 | +import org.programus.android.floatings.Constants; |
| 36 | +import org.programus.android.floatings.R; |
| 37 | +import org.programus.android.floatings.SettingsActivity; |
| 38 | +import org.programus.android.floatings.activities.DialogActivity; |
| 39 | +import org.programus.android.floatings.services.core.FloatingService; |
| 40 | + |
| 41 | +import java.lang.reflect.InvocationTargetException; |
| 42 | +import java.lang.reflect.Method; |
| 43 | + |
44 | 44 | /** |
45 | 45 | * The service for multi-function floating view. |
46 | 46 | * @author programus |
@@ -315,6 +315,12 @@ public boolean onTouch(View v, MotionEvent event) { |
315 | 315 | } |
316 | 316 | }); |
317 | 317 | } |
| 318 | + |
| 319 | +// // Simulate a back button press. But need root, so not use currently. |
| 320 | +// private void simBackButton() { |
| 321 | +// Instrumentation instrumentation = new Instrumentation(); |
| 322 | +// instrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); |
| 323 | +// } |
318 | 324 |
|
319 | 325 | private void expandStatusBar() { |
320 | 326 | Object service = this.getSystemService(STATUSBAR); |
|
0 commit comments