Intent frontdoor = new Intent(this, FrontDoor.class);
startActivity(frontdoor);
finish();
+ return;
}
populateFields();
}
*/
private void populateFields() {
if (debug) Log.d(TAG, "populateFields");
- if (RowId != null) {
+ if ((RowId != null) && (RowId > 0)) {
CategoryEntry catEntry = Passwords.getCategoryEntry(RowId);
+ if (catEntry==null) {
+ return;
+ }
nameText.setText(catEntry.plainName);
}
}
restartTimerIntent = new Intent (CryptoIntents.ACTION_RESTART_TIMER);
- if (!isSignedIn()) {
+ if (isSignedIn()==false) {
Intent frontdoor = new Intent(this, FrontDoor.class);
startActivity(frontdoor);
finish();
+ return;
}
try {
if (debug) Log.d(TAG,"onResume()");
- if (!isSignedIn()) {
+ if (isSignedIn()==false) {
Intent frontdoor = new Intent(this, FrontDoor.class);
startActivity(frontdoor);
finish();
+ return;
}
showFirstTimeWarningDialog();
if (CategoryList.isSignedIn()==false) {
finish();
+ return;
}
setContentView(R.layout.chg_pass);
}
}
+ @Override
+ protected void onResume() {
+ super.onResume();
+
+ if (debug) Log.d(TAG,"onResume()");
+
+ if (CategoryList.isSignedIn()==false) {
+ finish();
+ return;
+ }
+ }
+
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
+ if (CategoryList.isSignedIn()==false) {
+ finish();
+ return;
+ }
+
//Setup layout
setContentView(R.layout.help);
String title = getResources().getString(R.string.app_name) + " - " +
}
}
+
@Override
protected void onResume() {
super.onResume();
if (debug) Log.d(TAG,"onResume()");
- if (CategoryList.isSignedIn() == false) {
+ if (CategoryList.isSignedIn()==false) {
finish();
+ return;
}
}
if (debug) Log.d(TAG,"onCreate()");
frontdoor = new Intent(this, FrontDoor.class);
- if (!CategoryList.isSignedIn()) {
+ if (CategoryList.isSignedIn()==false) {
startActivity(frontdoor);
// normally we'd do a finish() here, but
// by starting frontdoor from here the user could
if (debug) Log.d(TAG,"onResume()");
- if (CategoryList.isSignedIn() == false) {
+ if (CategoryList.isSignedIn()==false) {
saveState();
finish();
+ return;
}
populateFields();
}
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
+ if (CategoryList.isSignedIn()==false) {
+ finish();
+ return;
+ }
+
setContentView(R.layout.pass_gen);
String title = getResources().getString(R.string.app_name) + " - Generate Password";
protected void onResume() {
super.onResume();
- if (!CategoryList.isSignedIn()) {
+ if (CategoryList.isSignedIn()==false) {
finish();
+ return;
}
}
super.onCreate(icicle);
if (debug) Log.d(TAG,"onCreate()");
- if (!CategoryList.isSignedIn()) {
+ if (CategoryList.isSignedIn()==false) {
finish();
+ return;
}
restartTimerIntent = new Intent (CryptoIntents.ACTION_RESTART_TIMER);
}
if (CategoryId<1) {
finish(); // no valid category less than one
+ return;
}
String categoryName=Passwords.getCategoryEntry(CategoryId).plainName;
if (CategoryList.isSignedIn()==false) {
finish();
+ return;
}
}
super.onCreate(icicle);
if (debug) Log.d(TAG,"onCreate()");
- if (!CategoryList.isSignedIn()) {
+ if (CategoryList.isSignedIn()==false) {
finish();
+ return;
}
String title = getResources().getString(R.string.app_name) + " - "
if (debug) Log.d(TAG,"onResume()");
- if (CategoryList.isSignedIn() == false) {
+ if (CategoryList.isSignedIn()==false) {
finish();
+ return;
}
}
public static CategoryEntry getCategoryEntry(Long id) {
CategoryEntry catEntry=categoryEntries.get(id);
+ if (catEntry==null) {
+ return null;
+ }
if (catEntry.nameNeedsDecrypt) {
if (debug) Log.d(TAG,"decrypt cat");
try {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ if (CategoryList.isSignedIn()==false) {
+ finish();
+ return;
+ }
+
// Load the preferences from an XML resource
addPreferencesFromResource(R.xml.preferences);
}
+ @Override
+ protected void onResume() {
+ super.onResume();
+
+ if (CategoryList.isSignedIn()==false) {
+ finish();
+ return;
+ }
+ }
+
}
firstTime = extras != null ? extras.getBoolean(Restore.KEY_FIRST_TIME) : false;
}
- if ((!firstTime) && (!CategoryList.isSignedIn())) {
+ if ((!firstTime) && (CategoryList.isSignedIn()==false)) {
Intent frontdoor = new Intent(this, FrontDoor.class);
startActivity(frontdoor);
finish();
+ return;
}
setContentView(R.layout.restore);
if (debug) Log.d(TAG,"onResume()");
- if ((!firstTime) && (!CategoryList.isSignedIn())) {
+ if ((!firstTime) && (CategoryList.isSignedIn()==false)) {
Intent frontdoor = new Intent(this, FrontDoor.class);
startActivity(frontdoor);
finish();
+ return;
}
}