143c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani/* 243c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * Copyright (C) 2010 The Android Open Source Project 343c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * 443c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * Licensed under the Apache License, Version 2.0 (the "License"); 543c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * you may not use this file except in compliance with the License. 643c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * You may obtain a copy of the License at 743c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * 843c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * http://www.apache.org/licenses/LICENSE-2.0 943c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * 1043c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * Unless required by applicable law or agreed to in writing, software 1143c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * distributed under the License is distributed on an "AS IS" BASIS, 1243c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1343c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * See the License for the specific language governing permissions and 1443c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * limitations under the License. 1543c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani */ 1643c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani 1743c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasanipackage com.android.settings; 1843c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani 1943c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasaniimport android.app.Dialog; 2043c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani 2143c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani/** 2243c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * Letting the class, assumed to be Fragment, create a Dialog on it. Should be useful 2343c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * you want to utilize some capability in {@link SettingsPreferenceFragment} but don't want 2443c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani * the class inherit the class itself (See {@link ProxySelector} for example). 2543c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani */ 2643c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasanipublic interface DialogCreatable { 2743c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani 2843c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani public Dialog onCreateDialog(int dialogId); 2943c697854c7e373fbc1dae8b7a5259a32de346b4Amith Yamasani} 30