mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-11 18:10:44 +00:00
codacy: Avoid unused private fields
This commit is contained in:
parent
15c7e22bda
commit
f7257af2c2
@ -33,7 +33,6 @@ import autodagger.AutoInjector;
|
||||
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class MagicFirebaseInstanceIDService extends FirebaseInstanceIdService {
|
||||
private static final String TAG = "MagicFirebaseInstanceIDService";
|
||||
|
||||
@Inject
|
||||
AppPreferences appPreferences;
|
||||
|
@ -30,7 +30,6 @@ import com.nextcloud.talk.jobs.NotificationJob;
|
||||
import com.nextcloud.talk.utils.bundle.BundleKeys;
|
||||
|
||||
public class MagicFirebaseMessagingService extends FirebaseMessagingService {
|
||||
private static final String TAG = "MagicFirebaseMessagingService";
|
||||
|
||||
@SuppressLint("LongLogTag")
|
||||
@Override
|
||||
|
@ -36,7 +36,6 @@ import eu.davidea.viewholders.FlexibleViewHolder;
|
||||
|
||||
public class NewCallHeaderItem extends AbstractHeaderItem<NewCallHeaderItem.HeaderViewHolder>
|
||||
implements IHeader<NewCallHeaderItem.HeaderViewHolder> {
|
||||
private static final String TAG = "NewCallHeaderItem";
|
||||
|
||||
HeaderViewHolder headerViewHolder;
|
||||
|
||||
|
@ -122,7 +122,6 @@ public class CallsListController extends BaseController implements SearchView.On
|
||||
|
||||
private BottomSheet bottomSheet;
|
||||
private MenuItem searchItem;
|
||||
private Menu menuVariable;
|
||||
private SearchView searchView;
|
||||
private String searchQuery;
|
||||
|
||||
@ -247,7 +246,6 @@ public class CallsListController extends BaseController implements SearchView.On
|
||||
super.onCreateOptionsMenu(menu, inflater);
|
||||
|
||||
inflater.inflate(R.menu.menu_conversation_plus_filter, menu);
|
||||
menuVariable = menu;
|
||||
searchItem = menu.findItem(R.id.action_search);
|
||||
initSearchView();
|
||||
}
|
||||
|
@ -65,7 +65,6 @@ import io.reactivex.disposables.Disposable;
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class SwitchAccountController extends BaseController {
|
||||
|
||||
private static final String TAG = "SwitchAccountController";
|
||||
@Inject
|
||||
UserUtils userUtils;
|
||||
|
||||
|
@ -79,8 +79,6 @@ public class CallMenuController extends BaseController implements FlexibleAdapte
|
||||
private MenuType menuType;
|
||||
private Intent shareIntent;
|
||||
|
||||
private UserEntity currentUser;
|
||||
|
||||
public CallMenuController(Bundle args) {
|
||||
super(args);
|
||||
this.room = Parcels.unwrap(args.getParcelable(BundleKeys.KEY_ROOM));
|
||||
@ -98,8 +96,6 @@ public class CallMenuController extends BaseController implements FlexibleAdapte
|
||||
protected void onViewBound(@NonNull View view) {
|
||||
super.onViewBound(view);
|
||||
NextcloudTalkApplication.getSharedApplication().getComponentApplication().inject(this);
|
||||
|
||||
currentUser = userUtils.getCurrentUser();
|
||||
prepareViews();
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,6 @@ import studio.carbonylgroup.textfieldboxes.TextFieldBoxes;
|
||||
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class EntryMenuController extends BaseController {
|
||||
private static final String TAG = "EntryMenuController";
|
||||
|
||||
@BindView(R.id.ok_button)
|
||||
Button proceedButton;
|
||||
|
@ -68,7 +68,6 @@ import retrofit2.HttpException;
|
||||
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class OperationsMenuController extends BaseController {
|
||||
private static final String TAG = "OperationsMenuController";
|
||||
|
||||
@BindView(R.id.progress_bar)
|
||||
ProgressBar progressBar;
|
||||
|
@ -31,7 +31,6 @@ import com.nextcloud.talk.jobs.NotificationJob;
|
||||
import com.nextcloud.talk.jobs.PushRegistrationJob;
|
||||
|
||||
public class MagicJobCreator implements JobCreator {
|
||||
private static final String TAG = "MagicJobCreator";
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
|
@ -32,7 +32,6 @@ import android.os.Build;
|
||||
public class NotificationUtils {
|
||||
public static final String NOTIFICATION_CHANNEL_CALLS = "NOTIFICATION_CHANNEL_CALLS";
|
||||
public static final String NOTIFICATION_CHANNEL_MESSAGES = "NOTIFICATION_CHANNEL_MESSAGES";
|
||||
private static final String TAG = "NotificationUtils";
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.O)
|
||||
public static void createNotificationChannel(NotificationManager notificationManager,
|
||||
|
@ -42,7 +42,6 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class ShareUtils {
|
||||
private static final String TAG = "ShareUtils";
|
||||
|
||||
public static String getStringForIntent(Context context, @Nullable String password, UserUtils userUtils, Room
|
||||
room) {
|
||||
|
@ -37,7 +37,6 @@ import io.requery.query.Result;
|
||||
import io.requery.reactivex.ReactiveEntityStore;
|
||||
|
||||
public class UserUtils {
|
||||
private static final String TAG = "UserUtils";
|
||||
private ReactiveEntityStore<Persistable> dataStore;
|
||||
|
||||
UserUtils(ReactiveEntityStore<Persistable> dataStore) {
|
||||
|
@ -56,7 +56,6 @@ import java.util.Set;
|
||||
public class MagicAudioManager {
|
||||
private static final String TAG = "MagicAudioManager";
|
||||
private static final String SPEAKERPHONE_AUTO = "auto";
|
||||
private static final String SPEAKERPHONE_TRUE = "true";
|
||||
private static final String SPEAKERPHONE_FALSE = "false";
|
||||
private final Context magicContext;
|
||||
// Contains speakerphone setting: auto, true or false
|
||||
@ -91,7 +90,7 @@ public class MagicAudioManager {
|
||||
private MagicProximitySensor proximitySensor = null;
|
||||
// Contains a list of available audio devices. A Set collection is used to
|
||||
// avoid duplicate elements.
|
||||
private Set<AudioDevice> audioDevices = new HashSet<AudioDevice>();
|
||||
private Set<AudioDevice> audioDevices = new HashSet<>();
|
||||
// Broadcast receiver for wired headset intent broadcasts.
|
||||
private BroadcastReceiver wiredHeadsetReceiver;
|
||||
// Callback method for changes in audio focus.
|
||||
@ -620,7 +619,6 @@ public class MagicAudioManager {
|
||||
private static final int STATE_UNPLUGGED = 0;
|
||||
private static final int STATE_PLUGGED = 1;
|
||||
private static final int HAS_NO_MIC = 0;
|
||||
private static final int HAS_MIC = 1;
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
|
@ -53,9 +53,7 @@ public class MagicPeerConnectionWrapper {
|
||||
private static String TAG = "MagicPeerConnectionWrapper";
|
||||
List<IceCandidate> iceCandidates = new ArrayList<>();
|
||||
private PeerConnection peerConnection;
|
||||
private List<PeerConnection.IceServer> iceServers;
|
||||
private String sessionId;
|
||||
private String localSession;
|
||||
private String nick;
|
||||
private MediaConstraints mediaConstraints;
|
||||
private DataChannel magicDataChannel;
|
||||
@ -73,8 +71,6 @@ public class MagicPeerConnectionWrapper {
|
||||
MediaConstraints mediaConstraints,
|
||||
String sessionId, String localSession, MediaStream mediaStream) {
|
||||
|
||||
this.iceServers = iceServerList;
|
||||
this.localSession = localSession;
|
||||
this.localMediaStream = mediaStream;
|
||||
|
||||
this.sessionId = sessionId;
|
||||
|
Loading…
Reference in New Issue
Block a user