use of android.support.annotation.NonNull in project android by owncloud.
the class RemoveAccountDialogFragment method onCreateDialog.
@Override
@NonNull
public Dialog onCreateDialog(Bundle savedInstanceState) {
Dialog dialog = super.onCreateDialog(savedInstanceState);
mTargetAccount = getArguments().getParcelable(ARG_TARGET_ACCOUNT);
setOnConfirmationListener(this);
return dialog;
}
use of android.support.annotation.NonNull in project android by owncloud.
the class SynchronizeFolderOperation method fetchRemoteFolder.
/**
* Get list of files in folder from remote server.
*
* @param client {@link OwnCloudClient} instance used to access the server.
* @return Result of the fetch, including list of remote files in the sync'ed folder.
* @throws OperationCancelledException
*/
@NonNull
private RemoteOperationResult fetchRemoteFolder(OwnCloudClient client) throws OperationCancelledException {
Log_OC.d(TAG, "Fetching list of files in " + mAccount.name + mRemotePath + ", if changed");
if (mCancellationRequested.get()) {
throw new OperationCancelledException();
}
ReadRemoteFolderOperation readFolderOperation = new ReadRemoteFolderOperation(mRemotePath);
return readFolderOperation.execute(client);
}
use of android.support.annotation.NonNull in project SongkickInterview by pakoito.
the class ZimplBaseActivity method startInjector.
@NonNull
private ActivityInjectionComponent startInjector() {
final ApplicationInjectionComponent applicationInjectionComponent = DereferenceApplication.get(this).component();
final ActivityInjectionComponent injector = newActivityInjector(applicationInjectionComponent);
injector.inject(this);
return injector;
}
use of android.support.annotation.NonNull in project material-calendarview by prolificinteractive.
the class CustomTileDimensions method onWidthClick.
@OnClick(R.id.custom_tile_width_size)
public void onWidthClick() {
final NumberPicker view = new NumberPicker(this);
view.setMinValue(24);
view.setMaxValue(64);
view.setWrapSelectorWheel(false);
view.setValue(currentTileWidth);
new AlertDialog.Builder(this).setView(view).setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(@NonNull DialogInterface dialog, int which) {
currentTileWidth = view.getValue();
widget.setTileWidthDp(currentTileWidth);
}
}).show();
}
use of android.support.annotation.NonNull in project material-calendarview by prolificinteractive.
the class CustomTileDimensions method onHeightClick.
@OnClick(R.id.custom_tile_height_size)
public void onHeightClick() {
final NumberPicker view = new NumberPicker(this);
view.setMinValue(24);
view.setMaxValue(64);
view.setWrapSelectorWheel(false);
view.setValue(currentTileHeight);
new AlertDialog.Builder(this).setView(view).setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(@NonNull DialogInterface dialog, int which) {
currentTileHeight = view.getValue();
widget.setTileHeightDp(currentTileHeight);
}
}).show();
}
Aggregations