fixes edition cache
This commit is contained in:
parent
8abec56e8a
commit
5dea4ee707
24 changed files with 269 additions and 102 deletions
|
|
@ -10,10 +10,19 @@ using Android.Runtime;
|
|||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using Android.Service.Chooser;
|
||||
using static Android.Manifest;
|
||||
|
||||
namespace BookAStar.Droid
|
||||
{
|
||||
[Service(Name = "fr.pschneider.bas.YavscChooserTargetService", Label = "Yavsc share service", Permission = "android.permission.BIND_CHOOSER_TARGET_SERVICE", Icon = "@drawable/icon", Exported = true)]
|
||||
[Service(
|
||||
Name = "fr.pschneider.bas.YavscChooserTargetService",
|
||||
Label = "Yavsc share service",
|
||||
Permission = Permission.BindChooserTargetService,
|
||||
Icon = "@drawable/icon",
|
||||
Exported = true,
|
||||
Enabled = true
|
||||
)]
|
||||
[IntentFilter(new String[] { "android.service.chooser.ChooserTargetService" })]
|
||||
class YavscChooserTargetService : ChooserTargetService
|
||||
{
|
||||
public override IList<ChooserTarget> OnGetChooserTargets(ComponentName targetActivityName, IntentFilter matchedFilter)
|
||||
|
|
@ -24,7 +33,7 @@ namespace BookAStar.Droid
|
|||
ChooserTarget t = new ChooserTarget(
|
||||
new Java.Lang.String(
|
||||
"BookingStar"), i,
|
||||
.5f, new ComponentName(this.BaseContext, ".SendFilesActivity"),
|
||||
.5f, new ComponentName(this, "BookAStar.SendFilesActivity"),
|
||||
null);
|
||||
var res = new List<ChooserTarget>();
|
||||
res.Add(t);
|
||||
|
|
@ -35,10 +44,5 @@ namespace BookAStar.Droid
|
|||
{
|
||||
return base.OnBind(intent);
|
||||
}
|
||||
|
||||
public override void OnCreate()
|
||||
{
|
||||
base.OnCreate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue