Back to project page encrypted-camera.
The source code is released under:
Apache License
If you think the Android project encrypted-camera listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.andrewreitz.encryptedcamera.ui.controller; /*from w w w . j a v a2 s .c om*/ import android.app.ActionBar; import android.app.Activity; import android.support.annotation.NonNull; public class ActivityController { private final Activity activity; public ActivityController(@NonNull Activity activity) { this.activity = activity; } public void finish() { activity.finish(); } public void setDisplayHomeAsUpEnabled(boolean showHomeAsUp) { ActionBar actionBar = activity.getActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); } } }