TdUb199420 / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

Tapping notification opens new instance #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Tap on the ongoing notification (connected or disconnected)

What is the expected output? What do you see instead?

Should bring existing instance of OpenVPN settings to top, but opens a new 
instance.

What version of the product are you using?

Latest.

Which Android phone are you using?

SE Xperia mini Pro

Which firmware version are you using?

CM

Please provide any additional information below.

This problem can be fixed by adding these lines to Notifications.java:

Intent intent = new Intent(context, OpenVpnSettings.class );
intent.setAction("android.intent.action.MAIN");
intent.addCategory("android.intent.category.LAUNCHER");
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
        | Intent.FLAG_ACTIVITY_SINGLE_TOP);

in both method notifyConnected and notifyDisconnected.

Original issue reported on code.google.com by mar...@bokhorst.biz on 13 Oct 2012 at 11:19