Search in sources :

Example 76 with NonNull

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;
}
Also used : Dialog(android.app.Dialog) NonNull(android.support.annotation.NonNull)

Example 77 with NonNull

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);
}
Also used : ReadRemoteFolderOperation(com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation) OperationCancelledException(com.owncloud.android.lib.common.operations.OperationCancelledException) NonNull(android.support.annotation.NonNull)

Example 78 with NonNull

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;
}
Also used : ApplicationInjectionComponent(com.pacoworks.dereference.ApplicationInjectionComponent) ActivityInjectionComponent(com.pacoworks.dereference.dependencies.ActivityInjectionComponent) NonNull(android.support.annotation.NonNull)

Example 79 with NonNull

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();
}
Also used : AlertDialog(android.support.v7.app.AlertDialog) NumberPicker(android.widget.NumberPicker) DialogInterface(android.content.DialogInterface) NonNull(android.support.annotation.NonNull) OnClick(butterknife.OnClick)

Example 80 with NonNull

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();
}
Also used : AlertDialog(android.support.v7.app.AlertDialog) NumberPicker(android.widget.NumberPicker) DialogInterface(android.content.DialogInterface) NonNull(android.support.annotation.NonNull) OnClick(butterknife.OnClick)

Aggregations

NonNull (android.support.annotation.NonNull)610 TextView (android.widget.TextView)65 View (android.view.View)64 ArrayList (java.util.ArrayList)57 Test (org.junit.Test)45 Intent (android.content.Intent)38 Cursor (android.database.Cursor)35 ContentValues (android.content.ContentValues)32 Bundle (android.os.Bundle)32 MaterialDialog (com.afollestad.materialdialogs.MaterialDialog)29 IOException (java.io.IOException)27 DialogAction (com.afollestad.materialdialogs.DialogAction)25 AlertDialog (android.support.v7.app.AlertDialog)24 Override (java.lang.Override)24 DialogInterface (android.content.DialogInterface)22 File (java.io.File)21 WorkerThread (android.support.annotation.WorkerThread)19 RecyclerView (android.support.v7.widget.RecyclerView)19 ImageView (android.widget.ImageView)19 HashMap (java.util.HashMap)19