Made encryption a pro feature

This commit is contained in:
M66B
2018-10-29 11:31:45 +00:00
parent 90fb39f43e
commit 293ba7ebe6
3 changed files with 46 additions and 23 deletions

View File

@@ -23,11 +23,13 @@ import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.MenuItem;
import java.util.ArrayList;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.Lifecycle;
public class ActivityCompose extends ActivityBilling implements FragmentManager.OnBackStackChangedListener {
static final int REQUEST_CONTACT_TO = 1;
@@ -125,4 +127,16 @@ public class ActivityCompose extends ActivityBilling implements FragmentManager.
if (getSupportFragmentManager().getBackStackEntryCount() == 0)
finish();
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getSupportFragmentManager().popBackStack();
return true;
default:
return false;
}
}
}