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