mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-01-29 21:49:16 +01:00
launch splash activity on widget click, close #64
This commit is contained in:
parent
1439521b87
commit
9e2f8a1194
@ -9,7 +9,7 @@ import android.view.View
|
||||
import android.widget.RemoteViews
|
||||
import com.simplemobiletools.notes.R
|
||||
import com.simplemobiletools.notes.R.layout.widget
|
||||
import com.simplemobiletools.notes.activities.MainActivity
|
||||
import com.simplemobiletools.notes.activities.SplashActivity
|
||||
import com.simplemobiletools.notes.extensions.config
|
||||
import com.simplemobiletools.notes.extensions.getTextSize
|
||||
|
||||
@ -59,7 +59,7 @@ class MyWidgetProvider : AppWidgetProvider() {
|
||||
}
|
||||
|
||||
private fun setupAppOpenIntent(id: Int, context: Context) {
|
||||
val intent = Intent(context, MainActivity::class.java)
|
||||
val intent = Intent(context, SplashActivity::class.java)
|
||||
val pendingIntent = PendingIntent.getActivity(context, 0, intent, 0)
|
||||
mRemoteViews.setOnClickPendingIntent(id, pendingIntent)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user