OSDN Git Service

Fix a bug in navup button.
authorFan Zhang <zhfan@google.com>
Fri, 14 Oct 2016 22:37:19 +0000 (15:37 -0700)
committerFan Zhang <zhfan@google.com>
Fri, 14 Oct 2016 22:42:28 +0000 (15:42 -0700)
commit9cf5cfb03dbf99e0d3cee1ac35b852822569f2ce
treea420e2964b4933067a65d6927619c4d564d3718b
parent542fe0c0c3e4fe0a25a06522a4defb81db810a4c
Fix a bug in navup button.

When launching internal setting activity from dynamic tiles and hit back
button, it goes back to settings homepage. Instead it should just go
back to the UI where startActivity is called.

This is caused by various activity flags set in manifest. Instead of
using startActivity, internal settings screen will just be launched
using SubSetting, which doesn't have this problem.

For external settings, still use startActivityForResult to maintain
backstack.

Test: manual
Change-Id: I07aa6ed932b9048375629d6ffd6ad1adfaba3fd3
src/com/android/settings/dashboard/DashboardFragment.java