diff options
author | Adnan <adnan@cyngn.com> | 2014-08-26 18:31:33 -0700 |
---|---|---|
committer | Adnan <adnan@cyngn.com> | 2014-08-27 09:06:43 -0700 |
commit | 2ef0f2fc6d08a3e077e4425754c867e7cf3140c3 (patch) | |
tree | 90ef6f5553181fac4cebff30c3ccd68b056af593 /ui/src/com/android/providers/downloads/ui/DialogDismissListener.java | |
parent | 5d1d0f24bae61ad1b5ecf31d340b379a52a423b3 (diff) | |
download | android_packages_providers_DownloadProvider-2ef0f2fc6d08a3e077e4425754c867e7cf3140c3.tar.gz android_packages_providers_DownloadProvider-2ef0f2fc6d08a3e077e4425754c867e7cf3140c3.tar.bz2 android_packages_providers_DownloadProvider-2ef0f2fc6d08a3e077e4425754c867e7cf3140c3.zip |
DownloadProvider: Create and implement DialogDismissListener.
- Better way to dismiss a host activity then explicitly calling
getActivity() finish().
Change-Id: I121fb63d2d57c6c4b22abac2389d5c3d5ccad6e4
Diffstat (limited to 'ui/src/com/android/providers/downloads/ui/DialogDismissListener.java')
-rw-r--r-- | ui/src/com/android/providers/downloads/ui/DialogDismissListener.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ui/src/com/android/providers/downloads/ui/DialogDismissListener.java b/ui/src/com/android/providers/downloads/ui/DialogDismissListener.java new file mode 100644 index 00000000..e55caa82 --- /dev/null +++ b/ui/src/com/android/providers/downloads/ui/DialogDismissListener.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2014 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.providers.downloads.ui; + +interface DialogDismissListener { + public void onDialogDismiss(); +} |