AddActivity.java revision 3d25123ccf00f54a953f83502a7767a4279eaa9b
/*
* FreeOTP
*
* Authors: Nathaniel McCallum <npmccallum@redhat.com>
*
* Copyright (C) 2013 Nathaniel McCallum, Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
public class AddActivity extends BaseActivity implements OnItemSelectedListener, View.OnClickListener {
private final int SHA1_OFFSET = 1;
private final int TOTP_OFFSET = 0;
private Spinner mAlgorithm;
super.onCreate(savedInstanceState);
// Select the default algorithm
// Setup the Interval / Counter toggle
mType.setOnItemSelectedListener(this);
// Setup the buttons
// Set constraints on when the Add button is enabled
}
finish();
return;
}
// Get the fields
// Create the URI
else
// Add the token
}
if (position == 0) {
} else {
}
}
}
}