mirror of
https://github.com/mgroves/MonodroidStockPortfolio.git
synced 2025-01-04 03:00:20 +00:00
21 lines
541 B
C#
21 lines
541 B
C#
|
using Android.App;
|
||
|
using Android.Content;
|
||
|
using Android.Widget;
|
||
|
|
||
|
namespace MonoStockPortfolio.Framework
|
||
|
{
|
||
|
public static class ActivityExtensions
|
||
|
{
|
||
|
public static void EndActivity(this Activity @this)
|
||
|
{
|
||
|
var intent = new Intent();
|
||
|
@this.SetResult(Result.Ok, intent);
|
||
|
@this.Finish();
|
||
|
}
|
||
|
|
||
|
public static void LongToast(this Activity @this, string message)
|
||
|
{
|
||
|
Toast.MakeText(@this, message, ToastLength.Long).Show();
|
||
|
}
|
||
|
}
|
||
|
}
|