|
|
|
@ -13,7 +13,7 @@ import com.thankvinci.CloudKey.MainActivity;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class NetHandler extends Handler {
|
|
|
|
|
public final static int FUNCTION_GET_MD5 = 0;
|
|
|
|
|
public final static int FUNCTION_GET_PWD = 0;
|
|
|
|
|
public final static int FUNCTION_ERROR = -1;
|
|
|
|
|
private Activity activity;
|
|
|
|
|
private Fragment fragment;
|
|
|
|
@ -25,7 +25,7 @@ public class NetHandler extends Handler {
|
|
|
|
|
public void handleMessage(Message msg) {
|
|
|
|
|
super.handleMessage(msg);
|
|
|
|
|
switch (msg.what){
|
|
|
|
|
case FUNCTION_GET_MD5:
|
|
|
|
|
case FUNCTION_GET_PWD:
|
|
|
|
|
if (fragment instanceof UnzipDialogFragment){
|
|
|
|
|
((UnzipDialogFragment)fragment).setPasswd(msg.getData().getString("key"));
|
|
|
|
|
((UnzipDialogFragment)fragment).setFromSQL(true);
|
|
|
|
|