mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-05 11:11:05 +02:00
rename a function
This commit is contained in:
parent
db54145ce3
commit
12d40190b2
@ -31,10 +31,10 @@ public class MyWidgetProvider extends AppWidgetProvider {
|
|||||||
private void initVariables(Context context) {
|
private void initVariables(Context context) {
|
||||||
prefs = context.getSharedPreferences(Constants.PREFS, Context.MODE_PRIVATE);
|
prefs = context.getSharedPreferences(Constants.PREFS, Context.MODE_PRIVATE);
|
||||||
remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget);
|
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 Intent intent = new Intent(context, MainActivity.class);
|
||||||
final PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
|
final PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
|
||||||
remoteViews.setOnClickPendingIntent(id, pendingIntent);
|
remoteViews.setOnClickPendingIntent(id, pendingIntent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user