You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
654 B
29 lines
654 B
10 years ago
|
/*
|
||
|
* Copyright 2014 A.C.R. Development
|
||
|
*/
|
||
|
package acr.browser.lightning;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.os.Handler;
|
||
|
import android.os.Message;
|
||
|
|
||
|
public class ClickHandler extends Handler {
|
||
|
|
||
|
private BrowserController mBrowserController;
|
||
|
|
||
|
public ClickHandler(Context context) {
|
||
|
try {
|
||
|
mBrowserController = (BrowserController) context;
|
||
|
} catch (ClassCastException e) {
|
||
10 years ago
|
throw new ClassCastException(context + " must implement BrowserController");
|
||
10 years ago
|
}
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void handleMessage(Message msg) {
|
||
|
super.handleMessage(msg);
|
||
10 years ago
|
String url = msg.getData().getString("url");
|
||
10 years ago
|
mBrowserController.longClickPage(url);
|
||
|
}
|
||
10 years ago
|
}
|