diff --git a/app/src/main/java/com/simplemobiletools/notes/MyWidgetProvider.java b/app/src/main/java/com/simplemobiletools/notes/MyWidgetProvider.java index 8f5ff6b9..4d9a75f4 100644 --- a/app/src/main/java/com/simplemobiletools/notes/MyWidgetProvider.java +++ b/app/src/main/java/com/simplemobiletools/notes/MyWidgetProvider.java @@ -31,10 +31,10 @@ public class MyWidgetProvider extends AppWidgetProvider { private void initVariables(Context context) { prefs = context.getSharedPreferences(Constants.PREFS, Context.MODE_PRIVATE); remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget); - setupIntent(R.id.notes_holder, context); + setupAppOpenIntent(R.id.notes_holder, context); } - private void setupIntent(int id, Context context) { + private void setupAppOpenIntent(int id, Context context) { final Intent intent = new Intent(context, MainActivity.class); final PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0); remoteViews.setOnClickPendingIntent(id, pendingIntent);