Skip to content

Commit

Permalink
#39 Clear text in onStop event rather than onResume. Move back AppsFa…
Browse files Browse the repository at this point in the history
…ctory and AppsManager to avoid strange issues.
  • Loading branch information
vackosar committed Dec 29, 2016
1 parent b636ce4 commit e88f11d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
Expand Up @@ -6,6 +6,7 @@
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.vackosar.searchbasedlauncher.entity.Action;
import com.vackosar.searchbasedlauncher.entity.AppsView;

@Singleton
public class ClearHistoryAndRestart extends Action {
Expand Down
Expand Up @@ -7,6 +7,7 @@

import com.google.inject.Inject;
import com.vackosar.searchbasedlauncher.R;
import com.vackosar.searchbasedlauncher.entity.AppsView;

import roboguice.activity.RoboActivity;
import roboguice.event.EventManager;
Expand Down
Expand Up @@ -2,6 +2,7 @@

import com.google.gson.annotations.Expose;
import com.google.inject.Inject;
import com.vackosar.searchbasedlauncher.entity.AppsView;
import com.vackosar.searchbasedlauncher.entity.RecentsCount;
import com.vackosar.searchbasedlauncher.entity.SelectAction;

Expand Down
Expand Up @@ -13,8 +13,8 @@

import java.util.Arrays;

import roboguice.activity.event.OnPauseEvent;
import roboguice.activity.event.OnResumeEvent;
import roboguice.activity.event.OnStopEvent;
import roboguice.context.event.OnCreateEvent;
import roboguice.event.Observes;
import roboguice.inject.ContextSingleton;
Expand Down Expand Up @@ -45,7 +45,7 @@ private void onResume(@Observes OnResumeEvent onResumeEvent) {
clearText();
}

private void onPause(@Observes OnPauseEvent event) {
private void onStop(@Observes OnStopEvent event) {
clearText();
}

Expand Down
Expand Up @@ -4,9 +4,9 @@

import com.google.gson.annotations.Expose;
import com.google.inject.Inject;
import com.vackosar.searchbasedlauncher.boundary.AppsFactory;
import com.vackosar.searchbasedlauncher.boundary.ItemListSelector;
import com.vackosar.searchbasedlauncher.entity.App;
import com.vackosar.searchbasedlauncher.entity.AppsFactory;
import com.vackosar.searchbasedlauncher.entity.Indentifiable;
import com.vackosar.searchbasedlauncher.entity.SingletonPersister;

Expand Down
@@ -1,12 +1,13 @@
package com.vackosar.searchbasedlauncher.boundary;
package com.vackosar.searchbasedlauncher.entity;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;

import com.google.inject.Inject;
import com.vackosar.searchbasedlauncher.entity.App;
import com.vackosar.searchbasedlauncher.boundary.BluetoothToggle;
import com.vackosar.searchbasedlauncher.boundary.WifiToggle;

import java.util.ArrayList;
import java.util.List;
Expand Down
@@ -1,4 +1,4 @@
package com.vackosar.searchbasedlauncher.boundary;
package com.vackosar.searchbasedlauncher.entity;

import android.app.Activity;
import android.view.View;
Expand All @@ -8,13 +8,13 @@
import com.google.gson.annotations.Expose;
import com.google.inject.Inject;
import com.vackosar.searchbasedlauncher.R;
import com.vackosar.searchbasedlauncher.boundary.AppExecutor;
import com.vackosar.searchbasedlauncher.boundary.AutostartSelector;
import com.vackosar.searchbasedlauncher.boundary.SearchText;
import com.vackosar.searchbasedlauncher.control.AppsManager;
import com.vackosar.searchbasedlauncher.control.DialogFactory;
import com.vackosar.searchbasedlauncher.control.PackageAddedOrRemovedEvent;
import com.vackosar.searchbasedlauncher.control.TextViewManager;
import com.vackosar.searchbasedlauncher.entity.App;
import com.vackosar.searchbasedlauncher.entity.Indentifiable;
import com.vackosar.searchbasedlauncher.entity.SingletonPersister;

import java.util.ArrayList;
import java.util.Collections;
Expand Down

0 comments on commit e88f11d

Please sign in to comment.