Tabnine Logo
Advanceable
Code IndexAdd Tabnine to your IDE (free)

How to use
Advanceable
in
android.widget

Best Java code snippets using android.widget.Advanceable (Showing top 6 results out of 315)

origin: klinker24/launcher3

private void addWidgetToAutoAdvanceIfNeeded(View hostView, AppWidgetProviderInfo appWidgetInfo) {
  if (appWidgetInfo == null || appWidgetInfo.autoAdvanceViewId == -1) return;
  View v = hostView.findViewById(appWidgetInfo.autoAdvanceViewId);
  if (v instanceof Advanceable) {
    mWidgetsToAdvance.put(hostView, appWidgetInfo);
    ((Advanceable) v).fyiWillBeAdvancedByHostKThx();
    updateAutoAdvanceState();
  }
}
origin: enricocid/LaunchEnr

private void runAutoAdvance() {
  Advanceable target = getAdvanceable();
  if (target != null) {
    target.advance();
  }
  scheduleNextAdvance();
}
origin: fookwood/Launcher3

void addWidgetToAutoAdvanceIfNeeded(View hostView, AppWidgetProviderInfo appWidgetInfo) {
  if (appWidgetInfo == null || appWidgetInfo.autoAdvanceViewId == -1) return;
  View v = hostView.findViewById(appWidgetInfo.autoAdvanceViewId);
  if (v instanceof Advanceable) {
    mWidgetsToAdvance.put(hostView, appWidgetInfo);
    ((Advanceable) v).fyiWillBeAdvancedByHostKThx();
    updateAutoAdvanceState();
  }
}
origin: klinker24/Android-Blur-Launcher

private void addWidgetToAutoAdvanceIfNeeded(View hostView, AppWidgetProviderInfo appWidgetInfo) {
  if (appWidgetInfo == null || appWidgetInfo.autoAdvanceViewId == -1) return;
  View v = hostView.findViewById(appWidgetInfo.autoAdvanceViewId);
  if (v instanceof Advanceable) {
    mWidgetsToAdvance.put(hostView, appWidgetInfo);
    ((Advanceable) v).fyiWillBeAdvancedByHostKThx();
    updateAutoAdvanceState();
  }
}
origin: WeAreFairphone/FP2-Launcher

void addWidgetToAutoAdvanceIfNeeded(View hostView, AppWidgetProviderInfo appWidgetInfo) {
  if (appWidgetInfo == null || appWidgetInfo.autoAdvanceViewId == -1) {
    return;
  }
  View v = hostView.findViewById(appWidgetInfo.autoAdvanceViewId);
  if (v instanceof Advanceable) {
    mWidgetsToAdvance.put(hostView, appWidgetInfo);
    ((Advanceable) v).fyiWillBeAdvancedByHostKThx();
    updateRunning();
  }
}
origin: enricocid/LaunchEnr

private void checkIfAutoAdvance() {
  boolean isAutoAdvance = false;
  Advanceable target = getAdvanceable();
  if (target != null) {
    isAutoAdvance = true;
    target.fyiWillBeAdvancedByHostKThx();
  }
  boolean wasAutoAdvance = sAutoAdvanceWidgetIds.indexOfKey(getAppWidgetId()) >= 0;
  if (isAutoAdvance != wasAutoAdvance) {
    if (isAutoAdvance) {
      sAutoAdvanceWidgetIds.put(getAppWidgetId(), true);
    } else {
      sAutoAdvanceWidgetIds.delete(getAppWidgetId());
    }
    maybeRegisterAutoAdvance();
  }
}
android.widgetAdvanceable

Most used methods

  • fyiWillBeAdvancedByHostKThx
  • advance

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now