mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Android: Store HomeScreenChannel's appLinkIntentUri as Uri
Cleanup of some code touched by the previous commit.
This commit is contained in:
parent
cbc4989095
commit
0cfd36495b
@ -1,21 +1,18 @@
|
|||||||
package org.dolphinemu.dolphinemu.model;
|
package org.dolphinemu.dolphinemu.model;
|
||||||
|
|
||||||
|
import android.net.Uri;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a home screen channel for Android TV api 26+
|
* Represents a home screen channel for Android TV api 26+
|
||||||
*/
|
*/
|
||||||
public class HomeScreenChannel
|
public class HomeScreenChannel
|
||||||
{
|
{
|
||||||
|
|
||||||
private long channelId;
|
private long channelId;
|
||||||
private String name;
|
private String name;
|
||||||
private String description;
|
private String description;
|
||||||
private String appLinkIntentUri;
|
private Uri appLinkIntentUri;
|
||||||
|
|
||||||
public HomeScreenChannel()
|
public HomeScreenChannel(String name, String description, Uri appLinkIntentUri)
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public HomeScreenChannel(String name, String description, String appLinkIntentUri)
|
|
||||||
{
|
{
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
@ -52,12 +49,12 @@ public class HomeScreenChannel
|
|||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAppLinkIntentUri()
|
public Uri getAppLinkIntentUri()
|
||||||
{
|
{
|
||||||
return appLinkIntentUri;
|
return appLinkIntentUri;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAppLinkIntentUri(String appLinkIntentUri)
|
public void setAppLinkIntentUri(Uri appLinkIntentUri)
|
||||||
{
|
{
|
||||||
this.appLinkIntentUri = appLinkIntentUri;
|
this.appLinkIntentUri = appLinkIntentUri;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ public class SyncChannelJobService extends JobService
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create the channel since it has not been added to the TV Provider.
|
// Create the channel since it has not been added to the TV Provider.
|
||||||
Uri appLinkIntentUri = Uri.parse(subscription.getAppLinkIntentUri());
|
Uri appLinkIntentUri = subscription.getAppLinkIntentUri();
|
||||||
|
|
||||||
Channel.Builder builder = new Channel.Builder();
|
Channel.Builder builder = new Channel.Builder();
|
||||||
builder.setType(TvContractCompat.Channels.TYPE_PREVIEW)
|
builder.setType(TvContractCompat.Channels.TYPE_PREVIEW)
|
||||||
|
@ -264,7 +264,7 @@ public class TvUtil
|
|||||||
subs.add(new HomeScreenChannel(
|
subs.add(new HomeScreenChannel(
|
||||||
context.getString(platform.getHeaderName()),
|
context.getString(platform.getHeaderName()),
|
||||||
context.getString(platform.getHeaderName()),
|
context.getString(platform.getHeaderName()),
|
||||||
AppLinkHelper.buildBrowseUri(platform).toString()));
|
AppLinkHelper.buildBrowseUri(platform)));
|
||||||
}
|
}
|
||||||
return subs;
|
return subs;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user