This commit is contained in:
rohands
2015-09-20 20:20:43 +05:30
parent 50f404ccdd
commit afbf2b36cf
5 changed files with 27 additions and 6 deletions

View File

@@ -708,7 +708,7 @@ public class KeyListFragment extends LoaderFragment
holder.mSlinger.setVisibility(View.VISIBLE);
LongClick.setup(holder.mSlingerButton,getString(R.string.exchange_keys));
LongClick.setup(holder.mSlingerButton);
holder.mSlingerButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {

View File

@@ -184,10 +184,10 @@ public class ViewKeyActivity extends BaseNfcActivity implements
//Long Click Listeners implemented
LongClick.setup(mActionEncryptFile,getString(R.string.encrypt_files));
LongClick.setup(mActionEncryptText,getString(R.string.encrypt_text));
LongClick.setup(mActionNfc,getString(R.string.share_nfc));
LongClick.setup(mFab,getString(R.string.exchange_keys));
LongClick.setup(mActionEncryptFile);
LongClick.setup(mActionEncryptText);
LongClick.setup(mActionNfc);
LongClick.setup(mFab);
mRotateSpin.setAnimationListener(new AnimationListener() {

View File

@@ -3,6 +3,22 @@ package org.sufficientlysecure.keychain.ui.util;
/**
* Created by rohan on 20/9/15.
*/
/*
* Copyright 2012 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.
*/
import android.content.Context;
import android.graphics.Rect;
import android.text.TextUtils;