Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shaikharfan7 committed Mar 23, 2020
1 parent 655b3d8 commit c5d225c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package me.shaikharfan.coronastatsindia;

import android.app.ActivityManager;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.util.Log;
import android.widget.RemoteViews;
Expand Down Expand Up @@ -35,9 +38,6 @@ public class IndiaStatsWidget extends AppWidgetProvider {
public static String countryCases, countryCured, countryDeaths;





static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,int appWidgetId)
{
//Thread-Method used from https://github.com/google/gson
Expand Down Expand Up @@ -150,6 +150,7 @@ public void onEnabled(Context context) {
public void onDisabled(Context context) {
// Enter relevant functionality for when the last widget is disabled
}

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public void onClick(View view) {
startActivity(viewIntent);
}
});


}
else{
Toast.makeText(context, "Internet Not Available, Please Try Again Later", Toast.LENGTH_SHORT).show();
Expand Down

0 comments on commit c5d225c

Please sign in to comment.