Skip to content

Commit 62d9284

Browse files
author
Chris Bellew
committed
Optimized imports. Fixed connecting and disconnecting to chromecast clients via voice queries.
1 parent 0a308f6 commit 62d9284

29 files changed

+102
-964
lines changed

mobile/src/main/AndroidManifest.xml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@
4242
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
4343
</intent-filter>
4444
</activity>
45-
<activity
46-
android:name=".activities.OldMainActivity"
47-
android:label="@string/app_name"
48-
>
49-
</activity>
5045
<service android:name=".services.PlexSearchService"
5146
android:label="Plex Search">
5247
</service>
@@ -56,23 +51,6 @@
5651
<action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
5752
</intent-filter>
5853
</service>
59-
<activity
60-
android:name=".activities.NowPlayingActivity"
61-
android:configChanges="screenSize"
62-
android:label="@string/app_name" >
63-
<intent-filter>
64-
<action android:name="android.intent.action.SEND" />
65-
</intent-filter>
66-
</activity>
67-
<activity
68-
android:name=".activities.CastActivity"
69-
android:launchMode="singleTask"
70-
android:configChanges="orientation|screenSize"
71-
android:label="@string/app_name" >
72-
<intent-filter>
73-
<action android:name="android.intent.action.SEND" />
74-
</intent-filter>
75-
</activity>
7654
<activity android:name=".activities.ShortcutProviderActivity"
7755
android:theme="@style/Theme.Transparent">
7856
<intent-filter>
@@ -93,7 +71,6 @@
9371
<service
9472
android:name=".GDMService"
9573
android:exported="false" />
96-
9774
<receiver
9875
android:name=".PlayReceiver"
9976
android:exported="true"

mobile/src/main/java/com/android/vending/billing/IabHelper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import android.text.TextUtils;
3030
import android.util.Log;
3131

32-
import com.android.vending.billing.IInAppBillingService;
33-
3432
import org.json.JSONException;
3533

3634
import java.util.ArrayList;

mobile/src/main/java/com/atomjack/vcfp/ActionCodes.java

Lines changed: 0 additions & 310 deletions
This file was deleted.

mobile/src/main/java/com/atomjack/vcfp/CastPlayerManager.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ public void subscribe(final PlexClient _client, final Runnable onFinished) {
144144
castManager.disconnect();
145145
}
146146
Logger.d("selecting device: %s", _client.castDevice);
147-
// TODO: Figure out routeinfo here
148147
castManager.onDeviceSelected(_client.castDevice, null);
149148
Logger.d("device selected");
150149
castConsumer.setOnConnected(new Runnable() {
@@ -215,20 +214,6 @@ public PlexSubscriptionListener getListener() {
215214
return listener;
216215
}
217216

218-
// TODO: Get rid of this
219-
public interface CastListener {
220-
void onCastConnected(PlexClient client);
221-
void onCastDisconnected();
222-
void onCastPlayerStateChanged(PlayerState state);
223-
void onCastPlayerTimeUpdate(int seconds);
224-
void onCastPlayerPlaylistAdvance(PlexMedia media);
225-
void onCastPlayerState(PlayerState state, PlexMedia media);
226-
void onCastConnectionFailed();
227-
void onCastSeek();
228-
void onGetDeviceCapabilities(Capabilities capabilities);
229-
PlexMedia getNowPlayingMedia();
230-
};
231-
232217
public VideoCastManager getCastManager() {
233218
return castManager;
234219
}

0 commit comments

Comments
 (0)