forked from organicmaps/organicmaps
[android] Added Savalbe interface and moved Detachable interface to base package
This commit is contained in:
parent
8494933467
commit
d3d34c186d
6 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
package com.mapswithme.maps.dialog;
|
||||
package com.mapswithme.maps.base;
|
||||
|
||||
import android.support.annotation.NonNull;
|
||||
|
9
android/src/com/mapswithme/maps/base/Savable.java
Normal file
9
android/src/com/mapswithme/maps/base/Savable.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package com.mapswithme.maps.base;
|
||||
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
public interface Savable<T>
|
||||
{
|
||||
void onSave(@NonNull T outState);
|
||||
void onRestore(@NonNull T inState);
|
||||
}
|
|
@ -3,7 +3,7 @@ package com.mapswithme.maps.bookmarks;
|
|||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.app.FragmentActivity;
|
||||
|
||||
import com.mapswithme.maps.dialog.Detachable;
|
||||
import com.mapswithme.maps.base.Detachable;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import com.mapswithme.maps.background.AbstractLogBroadcastReceiver;
|
|||
import com.mapswithme.maps.bookmarks.data.BookmarkManager;
|
||||
import com.mapswithme.maps.bookmarks.data.Error;
|
||||
import com.mapswithme.maps.bookmarks.data.Result;
|
||||
import com.mapswithme.maps.dialog.Detachable;
|
||||
import com.mapswithme.maps.base.Detachable;
|
||||
|
||||
public class BookmarkDownloadReceiver extends AbstractLogBroadcastReceiver implements Detachable<BookmarkDownloadHandler>
|
||||
{
|
||||
|
|
|
@ -15,8 +15,8 @@ import com.mapswithme.maps.PrivateVariables;
|
|||
import com.mapswithme.maps.R;
|
||||
import com.mapswithme.maps.base.BaseMwmFragment;
|
||||
import com.mapswithme.maps.bookmarks.data.PaymentData;
|
||||
import com.mapswithme.maps.dialog.Detachable;
|
||||
import com.mapswithme.maps.dialog.ProgressDialogFragment;
|
||||
import com.mapswithme.maps.base.Detachable;
|
||||
import com.mapswithme.util.log.Logger;
|
||||
import com.mapswithme.util.log.LoggerFactory;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mapswithme.maps.purchase;
|
|||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
|
||||
import com.mapswithme.maps.dialog.Detachable;
|
||||
import com.mapswithme.maps.base.Detachable;
|
||||
|
||||
abstract class StatefulPurchaseCallback<State, UiObject extends PurchaseStateActivator<State>>
|
||||
implements Detachable<UiObject>
|
||||
|
|
Loading…
Add table
Reference in a new issue