commit | dc39490502343e25b1164b2a95c49e51bf27dd85 | [log] [tgz] |
---|---|---|
author | Filip Gruszczynski <gruszczy@google.com> | Mon Dec 14 10:20:22 2015 -0800 |
committer | Filip Gruszczynski <gruszczy@google.com> | Mon Dec 14 16:07:36 2015 -0800 |
tree | 1acc288795ef956cc535a08c04e0f85c277cccbf | |
parent | 3ab0c4c43e1e5b9efec7c0fd6928b127afcfb25d [diff] |
Refactor checking for inserting activity into existing task. Inserting into existing task is a large chunk of code with very deep indentation. This removes 2 levels of indentation by checking them together and returning final result. CL also includes moving some of the permission checking code into a separate method. Change-Id: Ieba82ef9e410094de229b0d25b2a60bf18a1e869